LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-01-2006, 07:44 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Rep: Reputation: 51
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.

Last edited by cccc; 03-02-2006 at 06:21 PM.
 
Old 03-01-2006, 09:25 PM   #2
sipsipi
Member
 
Registered: Dec 2005
Location: Chicago
Distribution: Fedora and Redhat
Posts: 86

Rep: Reputation: 15
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
 
Old 03-01-2006, 09:29 PM   #3
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
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

Last edited by cccc; 03-02-2006 at 06:19 PM.
 
Old 03-01-2006, 09:43 PM   #4
sipsipi
Member
 
Registered: Dec 2005
Location: Chicago
Distribution: Fedora and Redhat
Posts: 86

Rep: Reputation: 15
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.
 
Old 03-02-2006, 06:25 PM   #5
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
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.

Last edited by cccc; 03-11-2006 at 07:16 AM.
 
Old 03-11-2006, 07:16 AM   #6
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
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 !
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help needed to setup a DNS server can anyone say how to configure a DNS server subha Linux - Networking 4 04-27-2012 11:50 PM
Suse DNS vs free DNS server for Newbie maxsanders Linux - Newbie 1 01-31-2006 04:57 PM
Do I leave primary and seconday DNS blank for a DNS Server? imsam Linux - Networking 3 10-25-2004 01:48 PM
need help to set up caching only dns server to with bogus DNS entries ullas Linux - Networking 1 10-28-2003 01:54 PM
BIND DNS client problems --unknown host Seneka Linux - Networking 4 12-28-2001 03:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration