#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    3
    Rep Power
    0

    BIND Not complete test


    Hi everyone,

    Can you help me to solve my problem for Bind9 installation in CentOS 6.2.

    Hostname : royalselangor.com
    Lan IP : 10.178.226.2
    WAN IP: 50.56.237.61
    DNS: royalselangor.com.my



    1) # vi /etc/named.conf

    //
    // named.conf
    //
    // Provided by Red Hat bind 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.
    //

    options {
    listen-on port 53 { 127.0.0.1; 10.178.226.2; 50.56.237.61; };
    listen-on-v6 port 53 { none; };
    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; localnets;};
    recursion yes;

    dnssec-enable yes;
    dnssec-validation yes;
    dnssec-lookaside auto;

    /* Path to ISC DLV key */
    bindkeys-file "/etc/named.iscdlv.key";

    managed-keys-directory "/var/named/dynamic";
    };

    logging {
    channel default_debug {
    file "data/named.run";
    severity dynamic;
    };
    };

    zone "royalselangor.com.my" IN {
    type master;
    file "royalselangor.com.my.zone";
    allow-transfer { 127.0.0.1; 10.178.226.2; 50.56.237.61; };
    };

    zone "237.56.50in-addr.arpa" IN {
    type master;
    file "royalselangor.com.my.rev2;
    allow-transfer { 127.0.0.1; 10.178.226.2; 50.56.237.61; };
    };

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

    include "/etc/named.rfc1912.zones";
    include "/etc/named.root.key";

    key rndc-key {
    algorithm hmac-md5;
    secret "VQlD5ELBm2lz9fS82jsXPQ==";
    };
    controls {
    inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { rndc-key; };
    };


    2. # vi /var/named

    2.1 File royalselangor.com.my.zone

    $ORIGIN royalselangor.com.my.
    $TTL 86400
    @ IN SOA royalselangor.com. dinstream.gmail.com. (
    2012071602 ; serial
    1D ; refresh
    1H ; retry
    1W ; expire
    3H ) ; minimum

    royalselangor.com.my. IN NS royalselangor.com.
    ns1.royalselangor.com.my. IN A 50.56.237.61
    royalselangor.com.my. IN A 50.56.237.61

    61.237.56.50.royalselangor.com.my. IN PTR ns1
    61.237.56.50.royalselangor.com.my. IN PTR royalselangor.com.my

    royalselangor.com.my. IN MX 10 mail100
    royalselangor.com.my. IN MX 40 mail99
    royalselangor.com.my. IN MX 30 mail98

    mail99 IN A 10.1.1.12 ( Example IP addr for test)
    mail98 IN A 10.1.1.13 ( Example IP addr for test)


    2.2 File royalselangor.com.my.rev2


    $TTL 86400
    @ IN SOA ns1.royalselangor.com.my dinstream.gmail.com. (
    2012071602 ; serial
    21600 ; refresh
    3600 ; retry
    604800 ; expire
    86400 ) ; minimum

    237.56.50.in-addr.arpa. IN NS ns1.royalselangor.com.my.
    61.237.56.50.in-addr.arpa. IN PTR ns1.
    61.237.56.50.in-addr.arpa. IN PTR royalselangor.com.my.



    3. [root@royalselangor named]# service named restart
    Stopping named: . [ OK ]
    Starting named: [ OK ]


    4. When i test from WAN i cant see my DNS hosting.. Can you help me to solve this issues...... pleaseee!!!!!!!!!!!!!!!!!!!!!


    See on attachment for information


    [IMG]DNS test from outsite[/IMG]
    Last edited by dinstream; July 17th, 2012 at 09:48 PM. Reason: Just make original set
  2. #2
  3. They're coming to take me away

    Join Date
    Jan 2005
    Location
    Florida
    Posts
    5,105
    Rep Power
    5049
    It looks like the 2 nameservers listed for this domain are:
    pdnssr03.ebnccsb.com.my. ['203.106.238.104'] [TTL=86400]
    pdnssr01.ebnccsb.com.my. ['202.187.45.2'] [TTL=86400]

    That doesnt seem to be included in your zone file. Are those the correct ones that you want to use, or the one you have listed in your zone file?

    Also, do you own royalselangor.com as well? Or just royalselangor.com.my?
    Last edited by hiker; July 17th, 2012 at 08:10 PM.
    "I don't need to get a life. I'm a gamer. I have lots of lives!"
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    3
    Rep Power
    0
    FYI, im not register yet this IP address to Public. I have to test before registered.

    That doesnt seem to be included in your zone file. Are those the correct ones that you want to use, or the one you have listed in your zone file?

    -Currently im using third party solution to hosted all my DNS.
    But for future i want to throw them all..

    Also, do you own royalselangor.com as well? Or just royalselangor.com.my?

    -I need to create DNS royalselangor.com.my inside server royalselangor.com (my server)

    Below are the correct IP addr on script for yesterday.
    So, I already setting up to new server for my own..

    I have 2 IP address

    1) eth0 (WAN) - 50.56.237.61
    2) eth1 (LAN) - 10.178.226.2

    Hostname Server: royalselangor.com
    Host Address :
    a) 50.56.237.61 royalselangor.com , royalselangor.com.my
    b) 50.56.237.61 ns1 (change name)

    Command Windows
    ==============

    I just run this: nslookup -q=MX royalselangor.com.my 50.56.237.61
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    3
    Rep Power
    0
    It looks like the 2 nameservers listed for this domain are:
    pdnssr03.ebnccsb.com.my. ['203.106.238.104'] [TTL=86400]
    pdnssr01.ebnccsb.com.my. ['202.187.45.2'] [TTL=86400]

    The above information is third party registration not my own server.

IMN logo majestic logo threadwatch logo seochat tools logo