Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-30-2003, 10:31 AM
|
#1
|
LQ Newbie
Registered: Jul 2003
Distribution: Suse 8.2
Posts: 5
Rep:
|
BIND DNS Problems with Zone file and Config
Ok im having some problems with my Internal DNS Server. Its BIND 9 running on Suse 8.2 and acts as a forwarder and an authorative server to my internal network.
The server works when i try to acess the extenal internet but every time i try to connect to an internal host i does not work. Ive searched around and tried to see what the problem is but i can seem to see what it is. Here is my config and my zone file. Any problems pointed out would be appreciated
Code:
options {
directory "/var/lib/named";
listen-on port 53 { 127.0.0.1; 192.168.0.2; };
query-source address * port 53;
transfer-source * port 53;
notify-source * port 53;
allow-query { 127.0.0.1; 192.168.0.0/24; };
notify no;
};
zone "." in {
type hint;
file "rootservers.cache";
};
zone "localhost" in {
type master;
file "localhost.zone";
};
zone "harrinet.bogus" in {
type master;
file "harrinet.net";
notify no;
allow-transfer { none; };
allow-query { 127.0.0.1;192.168.0.0/24; };
};
And here is my zone file
Code:
$TTL 604800
@ IN SOA ns.myharrinet.bogus. hostmaster.myharrinet.bogus. (
199802151 ; serial, todays date + todays
10800 ; refresh, seconds
1800 ; retry, seconds
1209600 ; expire, seconds
604800 ) ; minimum, seconds
IN NS ns.myharrinet.bogus
localhost IN A 127.0.0.1
harricomp1 IN A 192.168.0.1
harricomp2 IN A 192.168.0.2
harricomp3 IN A 192.168.0.3
harricomp4 IN A 192.168.0.4
harricomp5 IN A 192.168.0.5
harricomp6 IN A 192.168.0.6
harricomp7 IN A 192.168.0.7
harricomp8 IN A 192.168.0.8
Anyone help?
|
|
|
07-30-2003, 10:47 AM
|
#2
|
Member
Registered: Feb 2001
Location: Texas
Distribution: Slackware, Mandrake, LFS
Posts: 306
Rep:
|
Try putting a . after your hostnames in your zone file, example:
harricomp1. IN A 192.168.0.1
You also probably want to setup reverse DNS to not break things, to map IP addresses to names.
|
|
|
07-30-2003, 10:53 AM
|
#3
|
LQ Newbie
Registered: Jul 2003
Distribution: Suse 8.2
Posts: 5
Original Poster
Rep:
|
ok cheers ill give it a try
|
|
|
07-30-2003, 11:04 AM
|
#4
|
Member
Registered: Jul 2003
Posts: 88
Rep:
|
Try dig @127.0.0.1 harricomp1.harrinet.bogus to see what that says
Rus
|
|
|
07-30-2003, 12:09 PM
|
#5
|
LQ Newbie
Registered: Jul 2003
Distribution: Suse 8.2
Posts: 5
Original Poster
Rep:
|
; <<>> DiG 9.2.2 <<>> @127.0.0.1 harricomp1.myharrinet.bogus
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 1588
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;harricomp1.myharrinet.bogus. IN A
;; AUTHORITY SECTION:
. 10774 IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2003073000 1800 900 604800 86400
;; Query time: 13 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Jul 30 17:13:45 2003
;; MSG SIZE rcvd: 120
this is what i got
|
|
|
07-30-2003, 02:51 PM
|
#6
|
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552
Rep:
|
Which system is ns.myharrinet.bogus?
|
|
|
07-30-2003, 04:58 PM
|
#7
|
LQ Newbie
Registered: Jul 2003
Distribution: Suse 8.2
Posts: 5
Original Poster
Rep:
|
harrinet2
|
|
|
All times are GMT -5. The time now is 07:41 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|