Help please! Domain not resolving

9 posts / 0 new
Last post
#1 Wed, 12/27/2017 - 18:01
nygage

Help please! Domain not resolving

Hello, i've just install virtualmin on my dedicated server, i want to host a webpage, but i have a problem, my domain is not solving, i have configured the dns in my provider to:

ns1.mydomain.com (ip of the server) ns2.mydomain.com (ip of the server)

I have created on bind an A record pointing to the ip of the server and in the domain ns i have:

domain.com ns1.mydomain.com

And it not working, when i try to run host mydomain.com 8.8.8.8 (to use Google dns) it returns: Aliases:

Host mydomain.com not found: 2(SERVFAIL)

what can I do? Thanks

Wed, 12/27/2017 - 20:48
slgarza

make sure to add glue records in your registrar (ns1.youdomain.tld and ns2.yourdomain.tld) along with your virtual server ip, then proceed to BIND DNS Server and add a master zone yourdomain.tld along with your main dns (ns1.yourdomain.tld) then add some NS and A records such as (ns2.yourdomain.tld) ans your ip, it your config file should look something like this:

domain.tld. IN NS ns1.domain.tld.

ns1.domain.tld. IN A 254.254.254.254 <--------YOUR IP!!!

ns2.domain.tld. IN A 254.254.254.254

domain.tld. IN NS ns2.domain.tld.

domain.tld. IN A 254.254.254.254

www.domain.tld. IN A 254.254.254.254

apply bind config, flush OS dns cache (or try different browser) wait a couple hours and bind should be ready to go, add a new virtual server (make sure to change your default NS servers into BIND server template) and should work flawlessly

Thu, 12/28/2017 - 04:17 (Reply to #2)
nygage

Thanks for the reply, stills continue, here you are the report of the domain

Thu, 12/28/2017 - 05:16
tpnsolutions
tpnsolutions's picture

Hi,

Your nameserver is unreachable. Either your firewall is blocking access, or BIND is not running.

If you'd like, we can setup a private consultation to correct your DNS issues. Drop me a line by email.

Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Thu, 12/28/2017 - 05:31
nygage

My firewall is accepting connections in 53 port ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:53 ctstate NEW and bind is running

Thu, 12/28/2017 - 05:49
nygage

Solved! bind was listening only on 127.0.0.1, changed to my public ip and it works, thanks!

Thu, 12/28/2017 - 07:11
tpnsolutions
tpnsolutions's picture

@nygage,

Glad to hear the issue has been resolved :-)

Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Thu, 12/28/2017 - 07:24 (Reply to #7)
nygage

Now i have other issue sorry, this happend when i send mails to my addres from gmail:

<BOUNCE@ns******.ip-5--.eu> (expanded from *******@mydomain.net): unknown user: "bounce"

Thu, 12/28/2017 - 09:05
nygage

And if I try to send a mail from the server: Failed to send mail : SMTP command . failed : 421 4.3.0 collect: Cannot write ./dfvBSF4TUq024551 (bfcommit, uid=0, gid=123): No such file or directory

Topic locked