karelrambousek
asked on
DNS: computer name under root domain "." resolve problem (need to resovle pure computer-xyz name without domain suffix)
Hello,
I need to setup bind on linux box the following way:
I have domain abc.com, I have setup the bind to resolve comp1.abc.com, comp2.abc.com, etc... So I can resolve any of my computers by FQDN (compxyz.abc.com) Now I need to resolve (on my local network, where this DNS is the primary DNS server) computer name without a domain suffix-> compxyz for example. It can be done by auto suffix insert after the computer name, but I don't like to do this that way. DNS must be able to resolve the pure computer name (under domain "." -> root)
Is there any way to do this?
thanks
-K-
I need to setup bind on linux box the following way:
I have domain abc.com, I have setup the bind to resolve comp1.abc.com, comp2.abc.com, etc... So I can resolve any of my computers by FQDN (compxyz.abc.com) Now I need to resolve (on my local network, where this DNS is the primary DNS server) computer name without a domain suffix-> compxyz for example. It can be done by auto suffix insert after the computer name, but I don't like to do this that way. DNS must be able to resolve the pure computer name (under domain "." -> root)
Is there any way to do this?
thanks
-K-
best way, as wnross points, is to add (if linux box) in your /etc/resolv.conf:
search abc.com
for windows, when you see tcp/ip propierties, you will se a tab about dns. there you can set the default search domain.
if you do not want that (which is the best solution and by far the simpler), then
* you can create a wins server using samba, so you can access computers by issuing their computer name. not very good but works.
or...
* create a script that updates the hosts file, so you can use only the name. you would need to edit the order of name search to be hosts,dns
search abc.com
for windows, when you see tcp/ip propierties, you will se a tab about dns. there you can set the default search domain.
if you do not want that (which is the best solution and by far the simpler), then
* you can create a wins server using samba, so you can access computers by issuing their computer name. not very good but works.
or...
* create a script that updates the hosts file, so you can use only the name. you would need to edit the order of name search to be hosts,dns
ASKER
Hello,
did you read my question??? I DON'T LIKE TO USE SEARCH DOMAIN!!!! I need to be able to resolve just the computername under ROOT DOMAIN "." SO:
FQDN is computer.domain.com, but it also is computer.domain.com. (dot at the end) . is the root domain. Now, I need to resolve computername. (dot at the end). Computed under root domain.
Thanks
-K-
did you read my question??? I DON'T LIKE TO USE SEARCH DOMAIN!!!! I need to be able to resolve just the computername under ROOT DOMAIN "." SO:
FQDN is computer.domain.com, but it also is computer.domain.com. (dot at the end) . is the root domain. Now, I need to resolve computername. (dot at the end). Computed under root domain.
Thanks
-K-
Sorry, but I read your question and wonder if some confusion there
but now I understand you want a root server for yourself, so you can add TLD's
I can only recommend to create a domain for each computer, and point the "A" record to that machine. of course this should only be allowed to internal users, since your server would then become a "lame server" pretending to be authority for domains that maybe not even exist.
but now I understand you want a root server for yourself, so you can add TLD's
I can only recommend to create a domain for each computer, and point the "A" record to that machine. of course this should only be allowed to internal users, since your server would then become a "lame server" pretending to be authority for domains that maybe not even exist.
ASKER
Hello,
I think this is not the way.
I have zone "." in my conf file with type hint and there are som ROOT DNS servers.
Can I combine this with zone "." type master?
Please don't answer if you don't know the exact solution (this will save my time). Thanks
-K-
I think this is not the way.
I have zone "." in my conf file with type hint and there are som ROOT DNS servers.
Can I combine this with zone "." type master?
Please don't answer if you don't know the exact solution (this will save my time). Thanks
-K-
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Great answer, thanks
Glad to help
Cheers,
-Bill
Cheers,
-Bill
Putting new tld's into your namespace will just break stuff.
I gather you don't want to do stuff like:
dig ns compxyz
dig SOA compxyz
rather, you just want
ssh compxyz
and
ping compxyz
to "just work"?
try adding to /etc/resolv.conf
domain abc.com
At that point non-FQDN will work.