LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Bind 9.8.1-P1 problem (https://www.linuxquestions.org/questions/linux-newbie-8/bind-9-8-1-p1-problem-4175457253/)

vitronix 04-07-2013 12:50 PM

Bind 9.8.1-P1 problem
 
Hello,

I am trying to set up a DNS for my LAN using Ubuntu server 12.04 (32-bit)

Host name is virtual

Output from /usr/sbin/named -v is BIND 9.8.1-P1

This is the content of named.conf.local:

zone "vitronix.lan" {
type master;
file "/etc/bind/db.vitronix.lan.";
};

zone "10.168.192.in-addr.arpa" {
type master;
notify no;
file "etc/bind/db.10.168.192";
};

// Consider adding the 1918 zones here, if they are not used in your
// organization
// include "/etc/bind/zones.rfc1918";

Content of db.vitronix.lan:

;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA virtual.vitronix.lan. root.vitronix.lan. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS virtual.vitronix.lan.
virtual IN A 192.168.10.36
@ IN AAAA ::1

Content of db.10.168.192:

;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA virtual.vitronix.lan. root.vitronix.lan. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS virtual.
36 IN PTR virtual.vitronix.lan.

Output of dig vitronix.lan is:

; <<>> DiG 9.8.1-P1 <<>> vitronix.lan
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 29900
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;vitronix.lan. IN A

;; Query time: 3 msec
;; SERVER: 192.168.10.36#53(192.168.10.36)
;; WHEN: Sun Apr 7 06:54:58 2013
;; MSG SIZE rcvd: 30


I have installed Apache2, and when I enter 192.168.10.36 I get

It works..etc

But I want to enter virtual.vitronix.lan

Can anyone help?

Tanks in advance.

Tinkster 04-07-2013 07:27 PM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

http://www.linuxquestions.org/questi...em-4175457223/


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