cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
11568
Views
15
Helpful
4
Replies

Ip domain list

mamta.gohil
Level 1
Level 1

these are the commands configured in one router

ip domain list 202.56.230.6

ip domain name 202.56.240.5

Now i have removed them and configured

ip name-server 202.56.240.5

ip name-server 202.56.230.6

what is the difference between them

Regards

1 Accepted Solution

Accepted Solutions

Hi Mahesh,

Check out the notes section here

ip domain name name

Default domain name used to complete unqualified host names. Do not include the initial period that separates an unqualified name from the domain name.

http://www.cisco.com/en/US/products/sw/iosswrel/ps1835/products_command_reference_chapter09186a0080087387.html#wp1081557

The usage will be like this.

If your domain name is xyz.com and if you have many hosts/servers in this domain, then their fully qualified name would be "servername.xyz.com"

So as per the dns records, the name of the server would be "Servername.xyz.com"

So if you want to resolve the host name to the ip address, you should always supply the full server name ("servername.xyz.com")

Suppose if your users are just trying to reach the server by its name "servername" alone, and if you want your router to append the domain name to this, this command comes handy in those situation.

So the correct usage is to give the domain name as

ip domain name xyz.com

In this command you wont be specifying any "." symbols in the beginning.

When the user tries to reach the server by the "servername" then it will be converted by your router to "Servername.xyz.com" and then the DNS query will be performed by your router.

Hope this helps. Rate the post if it was helpful.

-VJ

View solution in original post

4 Replies 4

vijayasankar
Level 4
Level 4

Hi,

1) ip domain name "xyz.com"

It Defines a default domain name that the Cisco IOS software uses to complete unqualified host names (names without a dotted-decimal domain name).

Say for example, your company xyz.com and if you try to initiate a name query for the host abc, if this command is configured, the host "abc" will be converted to a fully qualified name as follows "abc.xyz.com" and then the dns query will be processed.

2) ip domain list

To define a list of default domain names to complete unqualified host names.

For the same example you can configured a list of domain names to be added to the default domain names that will be added to complete unqualified host names.

here you can configure as

ip domain list xyz.com test.com trial.com

Each of the domains that you specified in the above command will be tried in turn.

If there is no domain list configured, the domain name that you specified with the ip domain name global configuration command is used. If there is a domain list, the default domain name is not used. The ip domain list command is similar to the ip domain name command, except that with the ip domain list command you can define a list of domains, each to be tried in turn.

So for both these commands you should be supplying the domain names, not the ip address of the dns server.

3) The command "ip name-server" specifies the dns server ip address, that will be used for resolving the hostname to ip address.

Hope this helps. Rate if you find it useful

-VJ

Means

if i configure

ip domain name ".com"

and if i query for the host "abc" then it will become abc.com

am i right?

I am not clear what is use to configure this give me some live example please

for ip http-server command i am much clear

thanks for reply

regards

Mahesh

Hi Mahesh,

Check out the notes section here

ip domain name name

Default domain name used to complete unqualified host names. Do not include the initial period that separates an unqualified name from the domain name.

http://www.cisco.com/en/US/products/sw/iosswrel/ps1835/products_command_reference_chapter09186a0080087387.html#wp1081557

The usage will be like this.

If your domain name is xyz.com and if you have many hosts/servers in this domain, then their fully qualified name would be "servername.xyz.com"

So as per the dns records, the name of the server would be "Servername.xyz.com"

So if you want to resolve the host name to the ip address, you should always supply the full server name ("servername.xyz.com")

Suppose if your users are just trying to reach the server by its name "servername" alone, and if you want your router to append the domain name to this, this command comes handy in those situation.

So the correct usage is to give the domain name as

ip domain name xyz.com

In this command you wont be specifying any "." symbols in the beginning.

When the user tries to reach the server by the "servername" then it will be converted by your router to "Servername.xyz.com" and then the DNS query will be performed by your router.

Hope this helps. Rate the post if it was helpful.

-VJ

Thanks VJ

Now i am clear

regards