Find the answer to your Linux question:
Results 1 to 4 of 4
Hi All I need help in configuration of DNS in RHEL5........................ I have configured DNS in 192 series ip server and and i made 192 series ip as client....... But ...
  1. #1
    Just Joined!
    Join Date
    Jan 2010
    Posts
    3

    Question DNS configuration

    Hi All

    I need help in configuration of DNS in RHEL5........................
    I have configured DNS in 192 series ip server and and i made 192 series ip as client.......
    But now i need to know how to configure DNS in 192 series ip and 172 series ip as client....

    Can anybody help on this..........?


    Thanks in advance
    Prasanth

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    Simply point your 172 clients to the 192 DNS server, if I am understanding you correctly. DNS doesn't care where the request is coming from unless you have configured it to.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Just Joined! manishsethi's Avatar
    Join Date
    Aug 2010
    Location
    LUDHIANA
    Posts
    2
    In a nutshell, you need to install the latest version of BIND (if you haven't, I assume you have).

    Start the service:
    Code:
    /etc/init.d/named start
    Set it to always start on boot:
    Code:
    chkconfig --levels 2345 named on
    You tell named how to run in the configuration file /etc/named.conf, and you also put the information about which zones it will be authoritative for. An example named.conf:
    Code:
    options {
    directory "/var/named";
    dump-file "/var/named/data/cache_dump.db";
    statistics-file "/var/named/data/named_stats.txt";
    recursion no;
    /*
    * If there is a firewall between you and nameservers you want
    * to talk to, you might need to uncomment the query-source
    * directive below. Previous versions of BIND always asked
    * questions using port 53, but BIND 8.1 uses an unprivileged
    * port by default.
    */
    // query-source address * port 53;
    };

    //
    // a caching only nameserver config
    //
    controls {
    inet 127.0.0.1 allow { localhost; } keys { rndckey; };
    };

    zone "." IN {
    type hint;
    file "named.ca";
    };

    include "/etc/rndc.key";

    zone "mydomain.com" {
    type master;
    file "/var/named/mydomain.com.db";
    };
    And then, at /var/named/mydomain.com.db, you have the zone file, which might look like this:
    Code:
    ; Zone File for mydomain.com
    $TTL 14400
    @ 14440 IN SOA ns1.your-authoritative-NS.com. your.email.address. ( 2006102400
    14400
    7200
    3600000
    86400
    )

    mydomain.com. 14400 IN NS ns1.your-authoritative-NS.com.
    mydomain.com. 14400 IN NS ns2.your-other-nameserver.com.

    mydomain.com. 14400 IN A 1.2.3.4

    mydomain.com. 14400 IN MX 0 mail.mydomain.com.

    mail 14400 IN A 1.2.3.4
    www 14400 IN CNAME mydomain.com.


    There's much, much more. That should get you started, but I highly recommend you give a read to DNS and BIND

  4. #4
    Just Joined!
    Join Date
    Oct 2010
    Location
    Noida
    Posts
    7

    Post

    as lazydog said it will accept everything unless u set it not to...
    and manish gave a very detailed explaination in which i guess wat u shid be looking for is .....I quote from wat manish tuk as eg.

    """"zone "." IN {
    type hint;
    file "named.ca";
    };""""""

    this should work i guess... coz d . or a * over der refers to the range of ips..

Posting Permissions

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