Find the answer to your Linux question:
Results 1 to 3 of 3
Hi All, I am setting up my DNS configuration as mentioned below @etc/named.conf Code: // // named.caching-nameserver.conf // // Provided by Red Hat caching-nameserver package to configure the // ISC ...
  1. #1
    Just Joined!
    Join Date
    Nov 2008
    Location
    PUNE
    Posts
    72

    Need help regarding DNS in FC9

    Hi All,

    I am setting up my DNS configuration as mentioned below

    @etc/named.conf
    Code:
    //
    // named.caching-nameserver.conf
    //
    // Provided by Red Hat caching-nameserver package to configure the
    // ISC BIND named(8) DNS server as a caching only nameserver 
    // (as a localhost DNS resolver only).
    //
    // See /usr/share/doc/bind*/sample/ for example named configuration files.
    //
    // DO NOT EDIT THIS FILE - use system-config-bind or an editor
    // to create named.conf - edits to this file will be lost on 
    // caching-nameserver package upgrade.
    //
    
    options {
    	listen-on port 53 { 127.0.0.1; };
    	listen-on-v6 port 53 { ::1; };
    	directory 	"/var/named";
    	dump-file 	"/var/named/data/cache_dump.db";
            statistics-file "/var/named/data/named_stats.txt";
            memstatistics-file "/var/named/data/named_mem_stats.txt";
    	allow-query     { localhost; };
    	recursion yes;
    };
    
    logging {
            channel default_debug {
                    file "data/named.run";
                    severity dynamic;
            };
    };
    
    zone "." IN {
    	type hint;
    	file "named.ca";
    };
    
    zone "open-ims.test" IN {
        type master;
        file "open-ims.dzone";
    };
    
    zone "0.168.192.in-addr.arpa" IN {
        type master;
        file "0.168.192.zone";
    };
    
    
    include "/etc/named.rfc1912.zones";
    @open-ims.dzone
    Code:
    $ORIGIN open-ims.test.
    $TTL 1W
    @ 1D IN SOA open-ims.test. root.open-ims.test. (
    4 ; Serial
    604800 ; Refresh
    86400 ; Retry
    2419200	; Expire
    604800 ) ; Negative Cache TTL
    1D IN NS open-ims.test.
    @ 1D IN NS open-ims.test.
    @ 1D IN A 192.168.0.102
    ns 1D IN A 192.168.0.102
    pcscf 1D IN A 192.168.0.102
    open-ims.test. 1D IN A 192.168.0.102
    icscf 1D IN A 192.168.0.102
    scscf 1D IN A 192.168.0.102
    hss 1D IN A 192.168.0.102
    ue 1D IN A 192.168.0.102
    presence 1D IN A 192.168.0.102
    _sip 1D SRV 0 0 5060 icscf
    _sip._udp 1D SRV 0 0 5060 icscf
    _sip._tcp 1D SRV 0 0 5060 icscf
    open-ims.test. 1D IN NAPTR 10 50 "s" "SIP+D2U"	"" _sip._udp
    open-ims.test. 1D IN NAPTR 20 50 "s" "SIP+D2T"	"" _sip._tcp
    @0.168.192.zone
    Code:
    ;
    ; BIND reverse data file for local loopback interface
    ;
    $TTL	 	604800
    @	 	IN	SOA	open-ims.test. root.open-ims.test. (
    			      4		; Serial
    			 604800		; Refresh
    			  86400		; Retry
    			2419200		; Expire
    			 604800 )	; Negative Cache TTL
    ;
    @		IN	NS	open-ims.test.
    102	IN	PTR	open-ims.test.
    102 	IN	PTR	pcscf
    102 	IN	PTR	icscf
    102 	IN	PTR	scscf
    102 	IN	PTR	hss
    102 	IN	PTR	ue
    102 	IN	PTR	presence
    No w when i run service name start every thing goes fine
    here is the log

    Code:
    Feb 22 19:21:32 localhost named-sdb[3459]: starting BIND 9.5.1-P1 -u named -t /var/named/chroot
    Feb 22 19:21:32 localhost named-sdb[3459]: found 1 CPU, using 1 worker thread
    Feb 22 19:21:32 localhost named-sdb[3459]: using up to 4096 sockets
    Feb 22 19:21:32 localhost named-sdb[3459]: SDB ldap zone database module loaded.
    Feb 22 19:21:32 localhost named-sdb[3459]: SDB postgreSQL DB zone database module loaded.
    Feb 22 19:21:32 localhost named-sdb[3459]: SDB sqlite3 DB zone database module loaded.
    Feb 22 19:21:32 localhost named-sdb[3459]: SDB directory DB zone database module loaded.
    Feb 22 19:21:32 localhost named-sdb[3459]: loading configuration from '/etc/named.conf'
    Feb 22 19:21:32 localhost named-sdb[3459]: max open files (1024) is smaller than max sockets (4096)
    Feb 22 19:21:32 localhost named-sdb[3459]: using default UDP/IPv4 port range: [1024, 65535]
    Feb 22 19:21:32 localhost named-sdb[3459]: using default UDP/IPv6 port range: [1024, 65535]
    Feb 22 19:21:32 localhost named-sdb[3459]: listening on IPv6 interface lo, ::1#53
    Feb 22 19:21:32 localhost named-sdb[3459]: listening on IPv4 interface lo, 127.0.0.1#53
    Feb 22 19:21:32 localhost named-sdb[3459]: automatic empty zone: 127.IN-ADDR.ARPA
    Feb 22 19:21:32 localhost named-sdb[3459]: automatic empty zone: 254.169.IN-ADDR.ARPA
    Feb 22 19:21:32 localhost named-sdb[3459]: automatic empty zone: 2.0.192.IN-ADDR.ARPA
    Feb 22 19:21:32 localhost named-sdb[3459]: automatic empty zone: 255.255.255.255.IN-ADDR.ARPA
    Feb 22 19:21:32 localhost named-sdb[3459]: automatic empty zone: 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
    Feb 22 19:21:32 localhost named-sdb[3459]: automatic empty zone: D.F.IP6.ARPA
    Feb 22 19:21:32 localhost named-sdb[3459]: automatic empty zone: 8.E.F.IP6.ARPA
    Feb 22 19:21:32 localhost named-sdb[3459]: automatic empty zone: 9.E.F.IP6.ARPA
    Feb 22 19:21:32 localhost named-sdb[3459]: automatic empty zone: A.E.F.IP6.ARPA
    Feb 22 19:21:32 localhost named-sdb[3459]: automatic empty zone: B.E.F.IP6.ARPA
    Feb 22 19:21:32 localhost named-sdb[3459]: command channel listening on 127.0.0.1#953
    Feb 22 19:21:32 localhost named-sdb[3459]: command channel listening on ::1#953
    Feb 22 19:21:32 localhost named-sdb[3459]: the working directory is not writable
    Feb 22 19:21:32 localhost named-sdb[3459]: zone 0.in-addr.arpa/IN: NS '0.in-addr.arpa' has no address records (A or AAAA)
    Feb 22 19:21:32 localhost named-sdb[3459]: zone 0.in-addr.arpa/IN: loaded serial 0
    Feb 22 19:21:32 localhost named-sdb[3459]: zone 1.0.0.127.in-addr.arpa/IN: NS '1.0.0.127.in-addr.arpa' has no address records (A or AAAA)
    Feb 22 19:21:32 localhost named-sdb[3459]: zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
    Feb 22 19:21:32 localhost named-sdb[3459]: zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: NS '1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa' has no address records (A or AAAA)
    Feb 22 19:21:32 localhost named-sdb[3459]: zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0
    Feb 22 19:21:32 localhost named-sdb[3459]: zone localhost.localdomain/IN: loaded serial 0
    Feb 22 19:21:32 localhost named-sdb[3459]: zone localhost/IN: loaded serial 0
    Feb 22 19:21:32 localhost named-sdb[3459]: running
    Feb 22 19:23:32 localhost kernel: hub 1-0:1.0: unable to enumerate USB device on port 5
    Feb 22 19:23:32 localhost kernel: usb 4-1: new low speed USB device using uhci_hcd and address 2
    Feb 22 19:23:32 localhost kernel: usb 4-1: configuration #1 chosen from 1 choice
    Feb 22 19:23:32 localhost kernel: input: Dell Premium USB Optical Mouse as /devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.0/input/input11
    Feb 22 19:23:32 localhost kernel: input,hidraw0: USB HID v1.11 Mouse [Dell Premium USB Optical Mouse] on usb-0000:00:1d.2-1
    Feb 22 19:23:32 localhost kernel: usb 4-1: New USB device found, idVendor=413c, idProduct=3016
    Feb 22 19:23:32 localhost kernel: usb 4-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
    Feb 22 19:23:32 localhost kernel: usb 4-1: Product: Dell Premium USB Optical Mouse
    Feb 22 19:30:36 localhost named-sdb[3459]: received control channel command 'stop'
    Feb 22 19:30:36 localhost named-sdb[3459]: shutting down: flushing changes
    Feb 22 19:30:36 localhost named-sdb[3459]: stopping command channel on 127.0.0.1#953
    Feb 22 19:30:36 localhost named-sdb[3459]: stopping command channel on ::1#953
    Feb 22 19:30:36 localhost named-sdb[3459]: no longer listening on ::1#53
    Feb 22 19:30:36 localhost named-sdb[3459]: no longer listening on 127.0.0.1#53
    Feb 22 19:30:36 localhost named-sdb[3459]: exiting
    Feb 22 19:30:41 localhost named-sdb[4109]: starting BIND 9.5.1-P1 -u named -t /var/named/chroot
    Feb 22 19:30:41 localhost named-sdb[4109]: found 1 CPU, using 1 worker thread
    Feb 22 19:30:41 localhost named-sdb[4109]: using up to 4096 sockets
    Feb 22 19:30:41 localhost named-sdb[4109]: SDB ldap zone database module loaded.
    Feb 22 19:30:41 localhost named-sdb[4109]: SDB postgreSQL DB zone database module loaded.
    Feb 22 19:30:41 localhost named-sdb[4109]: SDB sqlite3 DB zone database module loaded.
    Feb 22 19:30:41 localhost named-sdb[4109]: SDB directory DB zone database module loaded.
    Feb 22 19:30:41 localhost named-sdb[4109]: loading configuration from '/etc/named.conf'
    Feb 22 19:30:41 localhost named-sdb[4109]: max open files (1024) is smaller than max sockets (4096)
    Feb 22 19:30:41 localhost named-sdb[4109]: using default UDP/IPv4 port range: [1024, 65535]
    Feb 22 19:30:41 localhost named-sdb[4109]: using default UDP/IPv6 port range: [1024, 65535]
    Feb 22 19:30:41 localhost named-sdb[4109]: listening on IPv6 interface lo, ::1#53
    Feb 22 19:30:41 localhost named-sdb[4109]: listening on IPv4 interface lo, 127.0.0.1#53
    Feb 22 19:30:41 localhost named-sdb[4109]: automatic empty zone: 127.IN-ADDR.ARPA
    Feb 22 19:30:41 localhost named-sdb[4109]: automatic empty zone: 254.169.IN-ADDR.ARPA
    Feb 22 19:30:41 localhost named-sdb[4109]: automatic empty zone: 2.0.192.IN-ADDR.ARPA
    Feb 22 19:30:41 localhost named-sdb[4109]: automatic empty zone: 255.255.255.255.IN-ADDR.ARPA
    Feb 22 19:30:41 localhost named-sdb[4109]: automatic empty zone: 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
    Feb 22 19:30:41 localhost named-sdb[4109]: automatic empty zone: D.F.IP6.ARPA
    Feb 22 19:30:41 localhost named-sdb[4109]: automatic empty zone: 8.E.F.IP6.ARPA
    Feb 22 19:30:41 localhost named-sdb[4109]: automatic empty zone: 9.E.F.IP6.ARPA
    Feb 22 19:30:41 localhost named-sdb[4109]: automatic empty zone: A.E.F.IP6.ARPA
    Feb 22 19:30:41 localhost named-sdb[4109]: automatic empty zone: B.E.F.IP6.ARPA
    Feb 22 19:30:41 localhost named-sdb[4109]: command channel listening on 127.0.0.1#953
    Feb 22 19:30:41 localhost named-sdb[4109]: command channel listening on ::1#953
    Feb 22 19:30:41 localhost named-sdb[4109]: the working directory is not writable
    Feb 22 19:30:41 localhost named-sdb[4109]: zone 0.in-addr.arpa/IN: NS '0.in-addr.arpa' has no address records (A or AAAA)
    Feb 22 19:30:41 localhost named-sdb[4109]: zone 0.in-addr.arpa/IN: loaded serial 0
    Feb 22 19:30:41 localhost named-sdb[4109]: zone 1.0.0.127.in-addr.arpa/IN: NS '1.0.0.127.in-addr.arpa' has no address records (A or AAAA)
    Feb 22 19:30:41 localhost named-sdb[4109]: zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
    Feb 22 19:30:41 localhost named-sdb[4109]: zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: NS '1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa' has no address records (A or AAAA)
    Feb 22 19:30:41 localhost named-sdb[4109]: zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0
    Feb 22 19:30:41 localhost named-sdb[4109]: zone localhost.localdomain/IN: loaded serial 0
    Feb 22 19:30:41 localhost named-sdb[4109]: zone localhost/IN: loaded serial 0
    Feb 22 19:30:41 localhost named-sdb[4109]: running
    but when i try to
    Code:
    [root@localhost ~]# dig open-ims.test
    
    ; <<>> DiG 9.5.1-P1 <<>> open-ims.test
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 13151
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;open-ims.test.			IN	A
    
    ;; AUTHORITY SECTION:
    .			4558	IN	SOA	a.root-servers.net. nstld.verisign-grs.com. 2009022200 1800 900 604800 86400
    
    ;; Query time: 92 msec
    ;; SERVER: 192.168.0.1#53(192.168.0.1)
    ;; WHEN: Sun Feb 22 19:38:30 2009
    ;; MSG SIZE  rcvd: 106
    Nothing shows up related to open-ims.test

    Any guess whats wrong with it ? please guide

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    Quote Originally Posted by sachin.parnami View Post
    Hi All,

    I am setting up my DNS configuration as mentioned below

    You are aware that the default settings for FC DNS are to run in chroot env. correct?

    The corect path is /var/named/chroot/var/named

    Ensure that your paths are setup correctly.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Just Joined!
    Join Date
    Nov 2008
    Location
    PUNE
    Posts
    72
    Thanks for your reply

    Yes i am aware of its default settings for FC DNS , and mistakenly i was using wrong file (i.e. named.conf)

    thanks again for pointing me out

    still i have some doubts, i think need to go through some book here for complete understanding

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...