No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

OceanStor 9000 V300R006C00 File System Feature Guide 12

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Connecting to the External DNS Server

Connecting to the External DNS Server

This section describes the procedure for connecting to an external DNS server in the Windows operating system and that in the Linux operating system.

Connecting to the External DNS Server (Windows)

This section uses Windows Server 2008 R2 as an example to explain how to connect to the external DNS server.

Prerequisites

InfoEqualizer has been enabled, and basic functions and dynamic service IP addresses have been configured.

Context

Two methods are available to connect to the external DNS server: conditional forwarder and delegation. Choose a suitable method based on the following conditions:

  • When the external DNS server is provided by the customer and the dynamic or static domain name of the OceanStor 9000 does not indicate a subdomain of an existing domain configured by the customer, configure a conditional forwarder for the DNS server. After a conditional forwarder is configured for the DNS server, the DNS server can forward an InfoEqualizer domain name request from a client to the OceanStor 9000, and the OceanStor 9000 returns a node's service IP address to the client.
  • When the external DNS server is provided by the customer, domains have been configured, and the dynamic or static domain name of the OceanStor 9000 indicates a subdomain of an existing domain configured by the customer, create a delegation for the DNS server. For example, when the customer has configured domain test.com, and the dynamic or static domain name of the OceanStor 9000 is example.test.com, create a delegation for the DNS server.

Procedure

  • Creating a conditional forwarder for the DNS server

    The dynamic domain name example.css.com and InfoEqualizer DNS IP address 192.168.0.200 shown in the screenshot are only example values. InfoEqualizer DNS IP address can be either an IPv4 address or an IPv6 address. An IPv4 address is used as an example in the screenshot. Configure values based on site requirements.

    1. Log in to the DNS server using the Administrator account.
    2. Click Start, type dnsmgmt.msc, and press Enter. The DNS Manager window is displayed.
    3. In the navigation tree, right-click Conditional Forwarders. From the shortcut menu that is displayed, click New Conditional Forwarder, as shown in Figure 2-35.

      Figure 2-35  Creating a forwarder

      The New Conditional Forwarder window is displayed.

    4. Configure the conditional forwarder. In DNS Domain, enter the dynamic domain name of InfoEqualizer and in IP address of the master servers, enter the InfoEqualizer DNS IP address. Press Enter and click OK, as shown in Figure 2-36.

      Figure 2-36  Configuring the conditional forwarder

    5. Repeat 3 to 4 to configure a conditional forwarder for the static domain name of InfoEqualizer.
    6. Close the DNS Manager window.
    7. Configure the IP address of the external DNS server on clients.

      • If Windows 7 is used:
        1. Choose Start > Control Panel > Network and Internet > Network and Sharing Center > Change adapter settings.
        2. Double-click Local Area Connection. In the Local Area Connection Status dialog box that is displayed, click Properties.
        3. If the client uses IPv4, double-click Internet Protocol Version 4 (TCP/IPv4). If the client uses IPv6, double-click Internet Protocol Version 6 (TCP/IPv6), On the page that is displayed, enter the IP address of the external DNS server.
        4. Click OK to return to the Local Area Connection Properties dialog box and click OK.
      • If Linux SLES 11 is used:
        1. Log in to a client as the root user and run yast2.
        2. Choose Network Devices > Network Settings > Hostname/DNS.
        3. On the page that is displayed, enter the IP address of the external DNS server in Name Server.

    8. On clients, verify that the InfoEqualizer domain name can be resolved to return a corresponding IP address.

      • Windows: On the CLI, run nslookup <InfoEqualizer domain name>.
      • Linux: In Terminal, run nslookup <InfoEqualizer domain name>.

  • Creating a delegation for the DNS server

    NOTE:

    The dynamic domain name example.css.com, InfoEqualizer DNS IP address 192.168.0.200, and host name hostexample shown in the screenshot are only example values. InfoEqualizer DNS IP address can be either an IPv4 address or an IPv6 address. An IPv4 address is used as an example in the screenshot. Configure values based on site requirements.

    1. Log in to the DNS server using the Administrator account.
    2. Click Start, type dnsmgmt.msc, and press Enter. The DNS Manager window is displayed.
    3. In the navigation tree, expand Forward Lookup Zones. Right-click the domain name. From the shortcut menu that is displayed, choose New Host, as shown in Figure 2-37.

      Figure 2-37  Creating a host

      The New Host page is displayed.

    4. In the Name text box, enter a host name. The host name is self-definable and cannot conflict with other host names or OceanStor 9000 domain names. For details about the host naming rule, see the following note. In IP address, enter the InfoEqualizer DNS IP address. Select Create associated pointer (PTR) record. Click Add Host. After the host is added, click Done. Figure 2-38 shows the operations.

      NOTE:

      Host naming rule: A host name can contain alphanumeric characters (a-z, A-Z, 0-9) and hyphens (-) only. If you enter any other character, the operation will fail.

      Figure 2-38  Configuring the host

    5. Right-click the domain name. From the shortcut menu that is displayed, choose New Delegation, as shown in Figure 2-39. The New Delegation Wizard page is displayed.

      Figure 2-39  Creating a delegation

    6. Click Next. In Delegation domain, enter the InfoEqualizer dynamic or static domain name except the domain name configured by the customer. A value is automatically generated for Fully qualified domain name (FQDN), which is the same as the full InfoEqualizer dynamic or static name. Click Next. Figure 2-40 shows the operations.

      Figure 2-40  Setting the delegation domain name

    7. Click Add. In Server fully qualified domain name (FQDN), enter the created host name and click Resolve. Click OK. Host information has been added. Figure 2-41 shows the operations.

      Figure 2-41  Adding the host name

    8. On the Name Servers page, click Next, and then Finish. The external DNS server is connected by creating a delegation. Figure 2-42 shows the operations.

      Figure 2-42  Adding host information

    9. Repeat 5 to 8 to add delegations of the InfoEqualizer static domain name to connect to the external DNS server.
    10. Close the DNS Manager window.
    11. Configure the IP address of the external DNS server on clients.

      • If Windows 7 is used:
        1. Choose Start > Control Panel > Network and Internet > Network and Sharing Center > Change adapter settings.
        2. Double-click Local Area Connection. In the Local Area Connection Status dialog box that is displayed, click Properties.
        3. If the client uses IPv4, double-click Internet Protocol Version 4 (TCP/IPv4). If the client uses IPv6, double-click Internet Protocol Version 6 (TCP/IPv6), On the page that is displayed, enter the IP address of the external DNS server.
        4. Click OK to return to the Local Area Connection Properties dialog box and click OK.
      • If Linux SLES 11 is used:
        1. Log in to a client as the root user and run yast2.
        2. Choose Network Devices > Network Settings > Hostname/DNS.
        3. On the page that is displayed, enter the IP address of the external DNS server in Name Server.

    12. On clients, verify that the InfoEqualizer domain name can be resolved to return a corresponding IP address.

      • Windows: On the CLI, run nslookup <InfoEqualizer domain name>.
      • Linux: In Terminal, run nslookup <InfoEqualizer domain name>.

Connecting to the External DNS Server (Linux)

This section uses SUSE Linux Enterprise Server 10 and BIND 9 as examples to explain how to connect to the external DNS server.

Prerequisites

InfoEqualizer has been enabled, and basic functions and dynamic service IP addresses have been configured.

Context

Two methods are available to connect to the external DNS server: conditional forwarder and delegation. Choose a suitable method based on the following conditions:

  • When the external DNS server is provided by the customer and the dynamic or static domain name of the OceanStor 9000 does not indicate a subdomain of an existing domain configured by the customer, configure a conditional forwarder for the DNS server. After a conditional forwarder is configured for the DNS server, the DNS server can forward an InfoEqualizer domain name request from a client to the OceanStor 9000, and the OceanStor 9000 returns a node's service IP address to the client.
  • When the external DNS server is provided by the customer, domains have been configured, and the dynamic or static domain name of the OceanStor 9000 indicates a subdomain of an existing domain configured by the customer, create a delegation for the DNS server. For example, when the customer has configured domain test.com, and the dynamic name of the OceanStor 9000 is example.d.test.com or static domain is example.s.test.com, create a delegation for the DNS server.

Procedure

  • Creating a conditional forwarder for the DNS server

    All parameter values used in the following operations are example values. The IP address can be either an IPv4 address or an IPv6 address. Configure values based on site requirements.

    1. Log in to the DNS server as a user having administrator rights.
    2. Run vim /etc/named.conf to edit the configuration file. Press i to go to the edit mode and type the following content. Then enter :wq and press Enter to save and exit.

      options {
      
      	# The directory statement defines the name server's working directory
      
      	directory "/var/lib/named";
      
      	dump-file "/var/log/named_dump.db";
      	statistics-file "/var/log/named.stats";
      }
      zone "example.d.com" in {
      	type forward;
      	forwarders { 192.168.0.200; };
      };
      zone "example.s.com" in {
      	type forward;
      	forwarders { 192.168.0.200; };
      };
      Parameter description:
      • /etc: path where the named.conf configuration file resides. The path varies depending on which operating system you use. Generally, the configuration file resides in the /etc directory.
      • example.d.com: dynamic domain name of InfoEqualizer.
      • example.s.com: static domain name of InfoEqualizer.
      • 192.168.0.200: DNS IP address of InfoEqualizer.

    3. Run service named restart to restart the named service for the setting to take effect.

      [root@ISM 16:57:15 /var/lib/named]# service named restart
      Shutting down name server BIND waiting for named to shut down (28s)done
      Starting name server BIND                                          done

    4. Run exit to log out.
    5. Configure the IP address of the external DNS server on clients.

      • If Windows 7 is used:
        1. Choose Start > Control Panel > Network and Internet > Network and Sharing Center > Change adapter settings.
        2. Double-click Local Area Connection. In the Local Area Connection Status dialog box that is displayed, click Properties.
        3. If the client uses IPv4, double-click Internet Protocol Version 4 (TCP/IPv4). If the client uses IPv6, double-click Internet Protocol Version 6 (TCP/IPv6), On the page that is displayed, enter the IP address of the external DNS server.
        4. Click OK to return to the Local Area Connection Properties dialog box and click OK.
      • If Linux SLES 11 is used:
        1. Log in to a client as the root user and run yast2.
        2. Choose Network Devices > Network Settings > Hostname/DNS.
        3. On the page that is displayed, enter the IP address of the external DNS server in Name Server.

    6. On clients, verify that the InfoEqualizer domain name can be resolved to return a corresponding IP address.

      • Windows: On the CLI, run nslookup <InfoEqualizer domain name>.
      • Linux: In Terminal, run nslookup <InfoEqualizer domain name>.

  • Creating a delegation for the DNS server

    All parameter values used in the following operations are example values. The IP address can be either an IPv4 address or an IPv6 address. Configure values based on site requirements.

    1. Log in to the DNS server as a user having administrator rights.
    2. Run vim /etc/named.conf to edit the configuration file. Press i to go to the edit mode and type the following content. Then enter :wq and press Enter to save and exit.

      options {
      
      	# The directory statement defines the name server's working directory
      
      	directory "/var/lib/named";
      
      	dump-file "/var/log/named_dump.db";
      	statistics-file "/var/log/named.stats";
      }
      zone "test.com" in {
      	type master;
      	file "test.zone";
      };
      Parameter description:
      • test.com: DNS domain name.
      • test.zone: DNS zone name.
      • /etc: path where the named.conf configuration file resides. The path varies depending on which operating system you use. Generally, the configuration file resides in the /etc directory.

    3. Run vim /var/lib/named/test.zone to edit the zone file and add the delegation setting.

      $TTL 86400
      $ORIGIN test.com.
      @       IN      SOA     ds.test.com. root.test.com.  (
                                            200601     ; Serial
                                            28800      ; Refresh
                                            14400      ; Retry
                                            3600000    ; Expire
                                            86400 )    ; Minimum
                      IN      NS     ds.test.com.
                      IN      MX      20      mail.test.com.
      example.d   IN      NS      hostexample
      example.s   IN      NS      hostexample
      hostexample    IN      A       192.168.0.200  //The value is AAAA when the IP address is an IPv6 address.
      Parameter description:
      • example.d: InfoEqualizer dynamic domain name excluding the parent domain.
      • example.s: InfoEqualizer static domain name excluding the parent domain.
      • hostexample: name of the delegated host. The host name is self-definable and cannot conflict with OceanStor 9000 domain names.
      • /var/lib/named: path where the test.zone configuration file resides. The path varies depending on which operating system you use. Generally, the configuration file resides in the /var/lib/named directory.
      • 192.168.0.200: DNS IP address of InfoEqualizer.

    4. Run service named restart to restart the named service for the setting to take effect.

      [root@ISM 16:57:15 /var/lib/named]# service named restart
      Shutting down name server BIND waiting for named to shut down (28s)done
      Starting name server BIND                                          done

    5. Run exit to log out.
    6. Configure the IP address of the external DNS server on clients.

      • If Windows 7 is used:
        1. Choose Start > Control Panel > Network and Internet > Network and Sharing Center > Change adapter settings.
        2. Double-click Local Area Connection. In the Local Area Connection Status dialog box that is displayed, click Properties.
        3. If the client uses IPv4, double-click Internet Protocol Version 4 (TCP/IPv4). If the client uses IPv6, double-click Internet Protocol Version 6 (TCP/IPv6), On the page that is displayed, enter the IP address of the external DNS server.
        4. Click OK to return to the Local Area Connection Properties dialog box and click OK.
      • If Linux SLES 11 is used:
        1. Log in to a client as the root user and run yast2.
        2. Choose Network Devices > Network Settings > Hostname/DNS.
        3. On the page that is displayed, enter the IP address of the external DNS server in Name Server.

    7. On clients, verify that the InfoEqualizer domain name can be resolved to return a corresponding IP address.

      • Windows: On the CLI, run nslookup <InfoEqualizer domain name>.
      • Linux: In Terminal, run nslookup <InfoEqualizer domain name>.

Exception Handling

When connecting to the external DNS server in delegation mode, if the client fails to access the OceanStor 9000 using a domain name, check whether network connectivity is normal and delegation is correctly configured. If network connectivity is normal and delegation is correctly configured, do the following:
  1. Run cat /etc/named.conf to check whether a forwarder is configured in options in the configuration file or in the root zone. The command output is as follows:

    Configuring a forwarder in options

    options {
    
    	# The directory statement defines the name server's working directory
    
    	directory "/var/lib/named";
    
    	dump-file "/var/log/named_dump.db";
    	statistics-file "/var/log/named.stats";
      forwarders{
          192.168.0.100;
      };
      forward first;
    };

    Configuring a forwarder in the root zone

    zone "." IN {
       type forward;
       forward only;
       forwarders{
       192.168.0.100;192.168.0.150};
    };
    • If yes, confirm with the customer's DNS maintenance administrator whether the domain names of the current zone and other zones can be resolved after the forwarder is blocked. After the forwarder is blocked, a domain name request is resolved only in the current zone but will not be forwarded to another zone or DNS server. If the domain names of the current zone and other zones can be resolved after the forwarder is blocked, go to 2. If it is unable to ensure whether the domain names of the current zone and other zones can be resolved after the forwarder are blocked, contact technical support engineers.
    • If no, contact technical support.

  2. Run vim /etc/named.conf to edit the configuration file. Press i to go to the edit mode. Forwarders can be blocked in the current zone after you type the following content. Then enter :wq and press Enter to save and exit.

    zone "test.com" in {
    	type master;
    	file "test.zone";
      forwarders{};
    };
    NOTE:

    After the forwarder is blocked, a domain name request is resolved only in the current zone but will not be forwarded to another zone or DNS server, preventing a domain name resolution failure.

  3. Check whether the client can access OceanStor 9000. If the access fails, contact technical support engineers.
Translation
Download
Updated: 2019-06-27

Document ID: EDOC1000122519

Views: 70750

Downloads: 145

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next