Thread: Bind-DNS help

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Posts
    2
    Rep Power
    0

    Bind-DNS help


    ok I need help.. been reading up on trying to do this for a week now.. here it goes..

    I have a fbsd 4.4 virtual server.. 1 IP for it. let say it is 101.202.303.404 the servername is vs75.server***.com the dns admin for it set its reverse name to ns1.abc.com, and aliases ns2.abc.com and www.abc.com.

    I have registered ns1.abc.com and ns2.abc.com as name servers..


    so currently the server is running www.abc.com.. I have another domain 123.com that I want to run on this server.. I have made the dns records ns1.abc.com and ns2.abc.com.. so a search for 123.com should look to ns1.abc.com to find out where it is at..

    But I am having problems setting up Bind...

    I have this in my named.conf


    zone "." {
    type hint;
    file "named.root";
    };

    zone "0.0.127.IN-ADDR.ARPA" {
    type master;
    file "localhost.rev";
    };

    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.IP6.INT" {
    type master;
    file "localhost.rev";
    };

    zone "123.com" {
    type slave;
    file "/etc/namedb/123.com.hosts";
    };

    zone "303.202.101.in-addr.arpa" {
    type slave;
    file "/etc/namedb/101.202.303.rev";
    };


    now first does this look right.. should they be slaves or masters????

    next

    123.com.hosts looks like:

    $ttl 38400
    abc.com. IN SOA vs75.server***.com. init_4fun.hotmail.com. (
    1017971451
    10800
    3600
    604800
    38400 )
    abc.com. IN NS vs75.server***.com.

    and 101.202.303.rev looks as so...

    303.202.101.in-addr.arpa. IN SOA vs75.server***.com. init_4fun.hotmail.com. (
    1017971600
    10800
    3600
    604800
    38400 )
    303.202.101.in-addr.arpa. IN NS ns1.abc.com.

    now... notice that there is vs75.server****.com in there.. in both.. should that be ns1.abc.com..

    I don't know.. I am lost.. books aren't helping I hope someone else could....

    if you notice anything at all please reply.. or email me...
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    4
    Rep Power
    0
    >> the dns admin for it set its reverse name

    What is reverse name?

    >> to ns1.abc.com

    If the reverse DNS of 101.202.303.404 resolves to vs75.server123.com you CAN'T change it to ns1.abc.com or anything else. Because:

    1) Unlike FQDN -> IP where unlimited of FQDNs can be resolved to 12.34.56.78, for the other way around (IP -> FQDN) there could only be ONE possible FQDN.
    2) 99.999% of the time you can't be authoritative to your in-addr.arpa because your ISP can't delegate that to your authoritative DNS servers.
    3) No matter what you do you just can't change the fact that your IP resolves to vs75.server123.com. Some ISPs can't even be authoritative for their own in-addr.arpa. A enduser like you definitely can't.

    >> I have this in my named.conf

    You don't need 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.IP6.INT" and zone "303.202.101.in-addr.arpa" {

    >> now first does this look right

    No.

    1) You need to set your box the same FQDN perhaps name it ns1.abc.com.
    2) Create a zone for abc.com and find someone to do slave (ns2) for you
    3) Set your SOA (abc.com zone and 123.com zone) to that ns1.abc.com instead of vs75.server***.com
    4) For NS record, do the same as (3)
    5) For abc.com zone add A record of ns1.abc.com itself and point it to your IP. If you need www.abc.com add another A record.

    >> if you notice anything at all please reply

    When it comes to troubleshooting MAIL and DNS you MUST provide real data (don't make up abc.com or use ***.com)

    >> or email me

    You ask a question here and get a reply here, that's what public forum is for. If you expect a reply via email find a consultant instead.

IMN logo majestic logo threadwatch logo seochat tools logo