09-07-2006 12:29 AM - edited 03-03-2019 04:51 AM
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
Solved! Go to Solution.
09-07-2006 01:00 AM
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.
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
09-07-2006 12:41 AM
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
09-07-2006 12:53 AM
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
09-07-2006 01:00 AM
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.
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
09-07-2006 01:03 AM
Thanks VJ
Now i am clear
regards
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide