Find the answer to your Linux question:
Results 1 to 6 of 6
alright guys here are my named.conf entries // // named.caching-nameserver.conf // // Provided by Red Hat caching-nameserver package to configure the // ISC BIND named( DNS server as a caching ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie bunty82's Avatar
    Join Date
    Sep 2007
    Location
    Asia
    Posts
    130

    Lightbulb DNS error


    alright guys here are my
    named.conf entries
    //
    // named.caching-nameserver.conf
    //
    // Provided by Red Hat caching-nameserver package to configure the
    // ISC BIND named( 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 { 192.168.0.45; };
    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";
    query-source port 53;
    query-source-v6 port 53;
    allow-query { localhost;192.168.0.45; };
    allow-transfer {localhost;192.168.0.45; };
    forwarders {192.168.0.45;};
    forward only ;
    };
    logging {
    channel default_debug {
    file "data/named.run";
    severity dynamic;
    };
    };
    view localhost_resolver {
    match-clients { localhost; };
    match-destinations { localhost; };
    recursion yes;
    include "/etc/named.rfc1912.zones";
    };


    my forward..zone file entries
    $TTL 86400
    @ IN SOA mac.com. root.mac.com (
    42 ; serial (d. adams)
    3H ; refresh
    15M ; retry
    1W ; expiry
    1D ) ; minimum

    IN NS mac.com
    mac.com IN A 192.168.0.45


    my reverse.zone entries
    $TTL 86400
    @ IN SOA 0.168.192.in.addr.arpa. root.localhost. (
    1997022700 ; Serial
    28800 ; Refresh
    14400 ; Retry
    3600000 ; Expire
    86400 ) ; Minimum
    IN NS 0.168.192.in.addr.arpa.
    45 IN PTR mac.com.

    Entries of my named.rfc1912.zones

    the last 11 lines edited
    zone "mac.com" IN {
    type master;
    file "named.broadcast";
    allow-update { none; };
    };

    zone "0.168.192.in-addr.arpa" IN {
    type master;
    file "named.zero";
    allow-update { none; };
    };

    my dns name is mac.com

    now my problems is i can only
    dig it and i get the following
    result

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

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

    ;; Query time: 0 msec
    ;; SERVER: 192.168.0.45#53(192.168.0.45)
    ;; WHEN: Mon Jul 28 17:51:48 2008
    ;; MSG SIZE rcvd: 25

    i am unable to
    do the following

    ssh mac.com
    nslookup mac.com
    ftp mac.com

    i get the following error
    unable to resolve name resolution

    please help
    System Configuration
    OS#Windows Xp pro Sp2
    Intel Core 2 Duo 2.2ghz
    Intel motherboard DG965ry
    Nvidia graphic card 512mb
    2 gb ram
    250gb Sata segate HDD
    160gb sata segate hdd
    D link ethernetcard
    Lg dvd writer
    Lg cd writer

  2. #2
    Just Joined! king_rero's Avatar
    Join Date
    Mar 2007
    Location
    rero's kingdom
    Posts
    15
    check ur /etc/resolv.conf and make sure that ur nameserver "DNS server" is there!

  3. #3
    Linux Newbie
    Join Date
    Feb 2008
    Location
    Bangalore, India
    Posts
    112
    King_repo is correct. mac.com is unable to resolve, it could be because of improper nameserver entries. If you have configured this on your local box and trying all these commands from localbox only then put your localhost ip in /etc/resolve.conf .

    - nilesh

  4. #4
    Just Joined! king_rero's Avatar
    Join Date
    Mar 2007
    Location
    rero's kingdom
    Posts
    15
    it's gonna be:
    nameserver xxx.xxx.xxx.xxx
    xxx.xxx.xxx.xxx ur dns server ip

  5. #5
    Linux Newbie bunty82's Avatar
    Join Date
    Sep 2007
    Location
    Asia
    Posts
    130
    guys name server entries are the same as you said. Even i added the loop back entry
    nameserver 127.0.0.1 to it still the dns is not able to resolve the name resolution.
    DO we have to give the entries of reverse.zone or forward.zone to any file.
    System Configuration
    OS#Windows Xp pro Sp2
    Intel Core 2 Duo 2.2ghz
    Intel motherboard DG965ry
    Nvidia graphic card 512mb
    2 gb ram
    250gb Sata segate HDD
    160gb sata segate hdd
    D link ethernetcard
    Lg dvd writer
    Lg cd writer

  6. #6
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    Quote Originally Posted by bunty82 View Post

    my forward..zone file entries
    $TTL 86400
    @ IN SOA mac.com. root.mac.com (
    42 ; serial (d. adams)
    3H ; refresh
    15M ; retry
    1W ; expiry
    1D ) ; minimum

    IN NS mac.com
    mac.com IN A 192.168.0.45

    Here is a problem. You haven't defined your zone properly.

    change
    mac.com IN A 192.168.0.45

    to
    mac.com. IN A 192.168.0.45

    or
    @ IN A 192.168.0.45

    What you have above is mac.com.mac.com as the host.

    my dns name is mac.com

    now my problems is i can only
    dig it and i get the following
    result

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

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

    ;; Query time: 0 msec
    ;; SERVER: 192.168.0.45#53(192.168.0.45)
    ;; WHEN: Mon Jul 28 17:51:48 2008
    ;; MSG SIZE rcvd: 25
    This is a failed DIG It returned nothing thus the
    ANSWER: 0

    i am unable to
    do the following

    ssh mac.com
    nslookup mac.com
    ftp mac.com

    i get the following error
    unable to resolve name resolution

    please help
    Because of the issues above.

    Might I suggest you get yourself a copy of DNS and BIND from O'Reilly. It is well worth it.

    Some other suggestions:

    1. move your dns to a chroot env.
    2. ensure you are running the latest updates.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

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