Results 1 to 6 of 6

Thread: Website Not Resolving

  1. #1

    Website Not Resolving

    I never understood dns properly,, but I have put together a bind file and I don't know why my website does not reslve. Can someone check it and kick me? Using bind9 on ubuntu 12.04

    ;
    ; BIND data file for theeducationchannel.info
    ;
    $TTL 14400
    @ 86400 IN SOA server11362.theeducationchannel.info. root.server11362.abc.com. (
    2008112502 ; serial, todays date+todays
    86400 ; refresh, seconds
    7200 ; retry, seconds
    3600000 ; expire, seconds
    86400 ) ; minimum, seconds

    theeducationchannel.info. 86400 IN NS ns1.carbon2u.com.
    theeducationchannel.info. 86400 IN NS ns2.carbon2u.com.


    theeducationchannel.info. IN A 111.90.150.93

    localhost.theeducationchannel.info. IN A 127.0.0.1

    theeducationchannel.info. IN MX 0 theeducationchannel.info.

    mail IN CNAME theeducationchannel.info.
    www IN CNAME theeducationchannel.info.
    ftp IN CNAME theeducationchannel.info.

  2. #2
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Website Not Resolving

    Your bind9 server is refusing queries
    Code:
    ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 26790
    Make sure you are allowing queries from external IPs (i.e. allow-query { any; }; )
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

  3. #3

    Re: Website Not Resolving

    What is the code for that and where do I put it?
    I can ping the ip but traceroute to the domain returns
    theeducationchannel.info: Name or service not known
    Cannot handle "host" cmdline arg `theeducationchannel.info' on position 1 (argc 1)

  4. #4
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Website Not Resolving

    Quote Originally Posted by astarmathsandphysics View Post
    What is the code for that and where do I put it?
    I can ping the ip but traceroute to the domain returns
    theeducationchannel.info: Name or service not known
    Cannot handle "host" cmdline arg `theeducationchannel.info' on position 1 (argc 1)
    a line like below should exist in your /etc/bind/named.conf.options file.
    Code:
    allow-query { any; };
    Each of your zone definitions
    i.e.
    Code:
            zone "stellasmoon.com" IN {
                    type master;
                    allow-query { any; };
                    file "/var/lib/bind/stellasmoon.com/default";
    should have a allow-query as well - like the above example
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

  5. #5

    Re: Website Not Resolving

    zone "stellasmoon.com" IN {
    type master;
    allow-query { any; };
    file "/var/lib/bind/stellasmoon.com/default";

    where should I insert this code?
    I thought all the bind files were in /etc/bind
    /var/lib/bind/ does exist but is empty

    I edited the code and put it in /etc/bind/named.conf.local

    Website doesnt resolve still
    Last edited by howefield; July 29th, 2015 at 11:18 AM.

  6. #6
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Website Not Resolving

    Quote Originally Posted by astarmathsandphysics View Post
    I edited the code and put it in /etc/bind/named.conf.local

    Website doesnt resolve still
    that line
    Code:
    allow-query { any; };
    should be added to your zone definition - the above was an example on how it should be added
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

Bookmarks

Posting Permissions

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