Find the answer to your Linux question:
Results 1 to 3 of 3
Hi plz help me regarding bind it will be very appreciable while checking conf file its shows error like this [root@localhost ~]# named-checkconf /var/named/chroot/etc/named.conf /var/named/chroot/etc/named.conf:59: open: /etc/named.root.hints: file not found ...
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Location
    Kathmandu
    Posts
    4

    Bind rhel 5

    Hi plz help me regarding bind it will be very appreciable

    while checking conf file its shows error like this

    [root@localhost ~]# named-checkconf /var/named/chroot/etc/named.conf
    /var/named/chroot/etc/named.conf:59: open: /etc/named.root.hints: file not found

    and status result is like below
    [root@localhost ~]# service named status
    number of zones: 11
    debug level: 0
    xfers running: 0
    xfers deferred: 0
    soa queries in progress: 0
    query logging is OFF
    recursive clients: 0/1000
    tcp clients: 0/100
    server is up and running
    [root@localhost ~]#

    my zone files is like this
    [root@localhost ~]# cat /var/named/chroot/var/named/nepse10.com.zone
    $TTL 86400
    @ IN SOA ns1.nepse10.com. root.nepse10.com. (
    20090212
    3600
    3600
    3600
    3600)

    IN NS ns1.nepse10.com.
    ns1 IN A 192.168.2.101
    www IN A 192.168.2.101
    nepse10.com IN A 192.168.2.101


    ;private clients
    report IN A 192.168.2.107
    microtik1 IN A 192.168.2.10
    ftp IN A 192.168.2.10
    [root@localhost ~]#


    while using dig it shows msg like this
    [root@localhost ~]# dig nepse10.com

    ; <<>> DiG 9.3.3rc2 <<>> nepse10.com
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 19621
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;nepse10.com. IN A

    ;; AUTHORITY SECTION:
    com. 900 IN SOA a.gtld-servers.net. nstld.verisign-grs.com. 1235974068 1800 900 604800 900

    ;; Query time: 790 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Mon Mar 2 17:36:10 2009
    ;; MSG SIZE rcvd: 102

    [root@localhost ~]#

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    Quote Originally Posted by pandeybasu View Post
    Hi plz help me regarding bind it will be very appreciable

    while checking conf file its shows error like this

    [root@localhost ~]# named-checkconf /var/named/chroot/etc/named.conf
    /var/named/chroot/etc/named.conf:59: open: /etc/named.root.hints: file not found
    This just means that you have no root.hints file or you do and it is not where bind thinks it should be. There are a couple of way to fix this.

    1. You could move your root.hints to /etc
    2. You can change your configuration to point to where you have the hints file.

    If you don't have a hints file then you should set one up.

    This is a simple thing to do. run the following:

    Code:
    dig +bufsize=1200 +norec NS . @a.root-servers.net > /ect/named.root.hints

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Just Joined!
    Join Date
    Feb 2009
    Location
    Kathmandu
    Posts
    4
    thanx for the solution

Posting Permissions

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