SOLVED --- DNS problem ~ nameservers are not responding.

5 posts / 0 new
Last post
#1 Wed, 10/12/2016 - 07:46
Broccoli_Go

SOLVED --- DNS problem ~ nameservers are not responding.

Hi, i am moving my website to another server but it cant be reaced by the public. Intodns (https://intodns.com/apilix.com)

Server have been fresh installed on ubuntu 16.04

Picture of New Virtual IP address (Server Configuration > Change IP address)

http://prntscr.com/csxax1

DNS Records

http://prntscr.com/csxcns

Re-Check Config

Mail server Postfix is installed and configured.

Postfix is configured to support per-domain outgoing IP addresses.

Apache is installed.

The following PHP versions are available : 7.0.8 (/usr/bin/php-cgi7.0)

Webalizer is installed.

Apache is configured to host SSL websites.

MySQL is installed and running.

ProFTPD is installed.

Logrotate is installed.

Plugin AWstats reporting is installed OK.

Plugin Protected web directories is installed OK.

Using network interface eno1 for virtual IPs.

Default IPv4 address for virtual servers is 192.168.1.220.

Both user and group quotas are enabled for home and email directories.

All commands needed to create and restore backups are installed.

The selected package management and update systems are installed OK.

.. your system is ready for use by Virtualmin.

I have tried a few stuff i found on the forums. But that didnt work. This link is kind of the same problem as mine (https://www.virtualmin.com/node/38026) Tried to do the same, but i still get the error.

It also gives me error when i try to resolve my nameservers. "unable to resolve nameserver to an IP address

UPDATE If i go to the external IP i get the default Apache website Checked Ports in Router. http://prntscr.com/csy601 - Ports are open.

Update 2 *** Ran command dig apilix.com

Output

; <<>> DiG 9.10.3-P4-Ubuntu <<>> apilix.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27336
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;apilix.com.                    IN      A

;; ANSWER SECTION:
apilix.com.             38400   IN      A       79.160.144.62

;; AUTHORITY SECTION:
apilix.com.             38400   IN      NS      ns1.apilix.com.
apilix.com.             38400   IN      NS      ns2.apilix.com.

;; ADDITIONAL SECTION:
ns1.apilix.com.         38400   IN      A       79.160.144.62

;; Query time: 0 msec
;; SERVER: ::1#53(::1)
;; WHEN: Wed Oct 12 17:36:13 CEST 2016
;; MSG SIZE  rcvd: 107
Wed, 10/12/2016 - 14:16
andreychek

Howdy,

Just to verify -- it looks like your server is behind a NAT router... is port 53 UDP being forwarded from the router to your server?

If only port 53 TCP were being forwarded, that could cause the problem you're experiencing.

Also, you may want to run "iptables -L -n" and verify that there isn't a firewall blocking access. And the command "netstat -an | grep :53" will show what addresses BIND is listening on.

-Eric

Wed, 10/12/2016 - 16:57 (Reply to #2)
Broccoli_Go

Port 53 UDP is open and forwarded to the server.

i ran the commands you sendt and got this output.

Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0            udp dpt:53
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:20000
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:10000
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:443
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:80
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:993
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:143
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:995
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:110
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:20
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:21
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:53
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:587
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:25
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:22

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
root@srv:~$ sudo netstat -an | grep :53
tcp        0      0 192.168.1.220:53        0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN
tcp6       0      0 :::53                   :::*                    LISTEN
udp        0      0 192.168.1.220:53        0.0.0.0:*
udp        0      0 127.0.0.1:53            0.0.0.0:*
udp6       0      0 :::53                   :::*

I run on a NAT router yes. Router Asus RT-AX68U. Went to "Wan" > Virtual Server / Port Forwaring, and opened the ports needed.

Wed, 10/12/2016 - 15:50
Broccoli_Go

Update on the dig apilix.com command

;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54477
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;apilix.com.                    IN      A

;; ANSWER SECTION:
apilix.com.             38400   IN      A       79.160.144.62

;; AUTHORITY SECTION:
apilix.com.             38400   IN      NS      ns2.apilix.com.
apilix.com.             38400   IN      NS      ns1.apilix.com.

;; ADDITIONAL SECTION:
ns1.apilix.com.         38400   IN      A       79.160.144.62
ns2.apilix.com.         38400   IN      A       79.160.144.62

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Oct 12 22:50:17 CEST 2016
;; MSG SIZE  rcvd: 123
Wed, 10/12/2016 - 17:50
Broccoli_Go

This is now fixed for now. I redid all the IP configuration and DNS configuration, and now it works!

Topic locked