LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DNS Server: UnKnown (https://www.linuxquestions.org/questions/linux-networking-3/dns-server-unknown-420765/)

cccc 03-01-2006 07:44 PM

DNS Server: UnKnown
 
hi

I've setuped a public DNS-Server BIND 9 on linux Debian Sarge.
it seems to work, but I have a following problem:
if I try lookup from an external client, then I get:

C:\>nslookup google.com
*** Can't find server name for address 202.X.X.10: Non-existent domain
*** Default servers are not available
Server: UnKnown
Address: 202.X.X.10

Non-authoritative answer:
Name: google.com
Addresses: 72.14.207.99, 64.233.167.99, 64.233.187.99

I'd like to get the answer from my DNS-Server:
domain.net or ext.domain.net
and not Server: UnKnown

I've tried already to setup a new Master Zone for the domain: domain.net using the webmin:
Code:


zone "domain.net" {
        type master;
        file "/etc/bind/domain.net.hosts";
        };

but still doesn't work.

sipsipi 03-01-2006 09:25 PM

First, what is in your resolv.conf as the DNS server you are querying?

Second, look at this other post, where I was trying to help this guy... hopefully it helps ya my friend:

http://www.linuxquestions.org/questi...d.php?t=418584

cccc 03-01-2006 09:29 PM

that could be not a problem of /etc/resolv.conf

Code:

# cat /etc/resolv.conf
search domain.net
nameserver 127.0.0.1
domain domain.net

and sorry about that, but this link doesn't help.

I think the problem is because reverse zone is missing

sipsipi 03-01-2006 09:43 PM

Do you have a zone file setup for this domain on your machine?

I don't mean to be dense, but your question is slightly confusing, and I would like to help.

cccc 03-02-2006 06:25 PM

I've done following using the webmin:

short information:
ext.domain.net is the name of this name server
and domain.net is domain of this name server

1.) first I've created a new reverse master zone:
Code:

zone "202.X.X.in-addr.arpa" {
        type master;
        file "/etc/bind/202.X.X.rev";
        notify yes;
        };

2.) next step, I've created a master zone for my dns server ext.domain.net:
Code:

zone "domain.net" {
        type master;
        file "/etc/bind/domain.net.hosts";
        notify yes;
        allow-query { any; }; 
        };

3.) using webmin I've opened the zone master zone: domain.net, clicked on Address and I've add the following:
Code:

ext.domain.net.        Default        202.X.X.10
domain.net.                Default        202.X.X.10
www.domain.net.        Default        202.X.X.10

now I have:
Code:

# vi domain.net.hosts

$ttl 38400
domain.net. IN SOA ext.domain.net. postmaster.domain.net. (
1141342035
10800
3600
604800
38400 )
domain.net. IN NS ext.domain.net.
ext.domain.net. IN A 202.X.X.10
domain.net. IN A 202.X.X.10

and reverse zone is:
Code:

# vi 202.X.X.rev
$ttl 38400
X.X.202.in-addr.arpa. IN SOA ext.domain.net. postmaster.domain.net. (
1141342019
10800
3600
604800
38400 )
X.X.202.in-addr.arpa. IN NS ext.domain.net.
10.X.X.202.in-addr.arpa. IN PTR ext.domain.net.


cccc 03-11-2006 07:16 AM

it seems to work now and I get on the client:
Code:

C:\>nslookup www.domain.net
Server:  ext.domain.net
Address:  202.X.X.10

Name:    www.domain.net
Address:  202.X.X.10

I hope it's everything OK now, if no pls correct me and let me know !


All times are GMT -5. The time now is 06:47 AM.