DNS: computer name under root domain "." resolve problem (need to resovle pure computer-xyz name without domain suffix)

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?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You prpbably don't want that,
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
ping compxyz

to "just work"?

try adding to /etc/resolv.conf

domain abc.com

At that point non-FQDN will work.
Gabriel OrozcoSolution ArchitectCommented:
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.
* 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
karelrambousekAuthor Commented:
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.
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

Gabriel OrozcoSolution ArchitectCommented:
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.
karelrambousekAuthor Commented:
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
No, you cannot combine it with the root hints, you will get sporadic dns resolution failure.

If you want to set up your own standalone DNS structure INDEPENDENT from the internet
(eg: a company not actually connected to the internet), then this is kinda the way to go.

An example of this has been encouraged by microsoft for their Active Directory setup
for example nwtraders.msft.

You can disable root hints as follows

in named.conf
zone "." {
        type hint;
        file "named.ca";
zone "." {type master; file "zone.root.dns"; }

In /var/named/zone.root.dns
@       IN      SOA     localhost. root.localhost.  (
                                      1997022700 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
              IN      NS
comp123   IN A
comp234   IN A
comp345   IN A

Now if you still needed internet access, you will have to hijack the root servers by replacing their functionality:

You start by manually adding DNS records to the above file:
com.                    172743  IN      NS      j.gtld-servers.net.
com.                    172743  IN      NS      k.gtld-servers.net.
com.                    172743  IN      NS      l.gtld-servers.net.
com.                    172743  IN      NS      m.gtld-servers.net.
com.                    172743  IN      NS      a.gtld-servers.net.
com.                    172743  IN      NS      b.gtld-servers.net.
com.                    172743  IN      NS      c.gtld-servers.net.
com.                    172743  IN      NS      d.gtld-servers.net.
com.                    172743  IN      NS      e.gtld-servers.net.
com.                    172743  IN      NS      f.gtld-servers.net.
com.                    172743  IN      NS      g.gtld-servers.net.
com.                    172743  IN      NS      h.gtld-servers.net.
com.                    172743  IN      NS      i.gtld-servers.net.

j.gtld-servers.net.      172800  IN      A
k.gtld-servers.net.     172800  IN      A
.... (use dig to get the rest)

Cleanse, fold, repeat for
.net, .mil, .gov, .org, .edu, .biz, .info, .name
.ca, .us, .uk, ,tw, .... see IANA for complete list

This is fairly labor intensive, but you only need to do it once.

After all this surgery is complete, your tld names will co-exist (sorta) with the rest of the net

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
karelrambousekAuthor Commented:
Great answer, thanks
Glad to help

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.