How to set the DNS server in a Brocade switch

In order to do DNS lookups in a Brocade SAN switch (for example to read the NTP server’s time), you need to configure DNS first.

By using the command “dnsconfig”, you can configure which 2 DNS servers the switch can use to do lookups:

dnsconfig

Now you see a 4-item menu:

Enter option
1 Display Domain Name Service (DNS) configuration
2 Set DNS configuration
3 Remove DNS configuration
4 Quit
Select an item: (1..4) [4]

Use option 1 to display the current configuration. If you need to add 2 DNS servers, choose option 2:

Enter Domain Name: [] 50mu.net
Enter Name Server IP address in dot/colon notation: [] 172.18.2.11
Enter Name Server IP address in dot/colon notation: [] 172.19.3.111
DNS parameters saved successfully

Now choose option 1 to see the current configuration:

Enter option
1 Display Domain Name Service (DNS) configuration
2 Set DNS configuration
3 Remove DNS configuration
4 Quit
Select an item: (1..4) [4] 1

Domain Name Server Configuration Information
____________________________________________

Domain Name = 50mu.net
Name Server IP Address = 172.18.2.11
Name Server IP Address = 172.19.3.111

Now enter option 4 to leave the configuration tool:

Enter option
1 Display Domain Name Service (DNS) configuration
2 Set DNS configuration
3 Remove DNS configuration
4 Quit
Select an item: (1..4) [4] 4

SAN-switch-12:admin> ping www.50mu.net
PING www.50mu.net (37.97.155.181): 56 octets data
64 octets from 137.97.155.181: icmp_seq=0 ttl=128 time=6.1 ms
64 octets from 37.97.155.181: icmp_seq=1 ttl=128 time=2.7 ms
64 octets from 37.97.155.181: icmp_seq=2 ttl=128 time=2.7 ms

Would you like to comment on this post?