Operating System - Linux
1827783 Members
2555 Online
109969 Solutions
New Discussion

subject: how to configure bind to resove only domainname as 'domain.com'

 
SOLVED
Go to solution

subject: how to configure bind to resove only domainname as 'domain.com'

my server is bind server in linux,
it can resovle the domainname as "xxx.mydomain.com", however, i do not know at all how to configure it to resolve the domainame as "mydomain.com" to default ip.
could somebody give me some sample?

Best Regards,
Frederick van targero
frederick van targero
2 REPLIES 2
Steven E. Protter
Exalted Contributor
Solution

Re: subject: how to configure bind to resove only domainname as 'domain.com'

Its hard to tell exactly what you want, but I think I may be doing what you want to do on my Linux server.

I'm going to upload my named.conf file and the zone record for my main in house domain.

Here is named.conf.
as an atatchment for clarity's sake.

There will be a second post with the zone record and isntructions on the dns start/stop info.


Cheers.
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven E. Protter
Exalted Contributor

Re: subject: how to configure bind to resove only domainname as 'domain.com'

here is the zone record.

Since you indicate you are already running bind/dns, all you need to do after setting up your zone is to do this.


service named stop
service named start

as root user.

Zone record for investmenttool.com is attached. This is what my server is telling the public internet about my web server in this case, which covers the entire domain.

You'll note the first attachment has a record pointing to the investmenttol.com.zone file

There are other standards for doing this, but this one works for me under the load of the public internet.

You can handle your whole internal or external domain or both with this methodology.

If this has been useful to you, please point the posts.

If you have additional questions, please ask.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com