Virtualmin hosting 2 websites, same settings, same dig results, only 1 website loads on browser?

16 posts / 0 new
Last post
#1 Tue, 08/20/2013 - 20:01
eiger3970

Virtualmin hosting 2 websites, same settings, same dig results, only 1 website loads on browser?

Hi, I have 2 websites on virtualmin/webmin. 1 website loads on browsers. 1 website doesn't load on browsers. Dig results are the same:

dig www.domain1.com ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.5 <<>> www.domain1.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39570 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION: ;www.domain1.com. IN A

;; Query time: 85 msec ;; SERVER: 192.168.1.180#53(192.168.1.180) ;; WHEN: Wed Aug 21 10:49:33 2013 ;; MSG SIZE rcvd: 37

dig www.domain2.com ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.5 <<>> www.domain2.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33618 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION: ;www.domain2.com. IN A

;; Query time: 31 msec ;; SERVER: 192.168.1.180#53(192.168.1.180) ;; WHEN: Wed Aug 21 10:51:11 2013 ;; MSG SIZE rcvd: 38

Tue, 08/20/2013 - 22:13
andreychek

Howdy,

Hmm, it doesn't look like either "dig" is actually returning an IP address for the domain.

What error do you receive in your browser when browsing to that second domain, that one that isn't working?

-Eric

Wed, 08/21/2013 - 01:29
Locutus

Indeed both dig commands failed here. If one of those domains still works in the browser, it's only due to cached IP addresses. You need to check and fix your BIND zones first.

Thu, 08/22/2013 - 16:30
eiger3970

Thanks for the replies. I went to Virtualmin > Webmin > Servers > BIND DNS Server > Existing DNS Zones > Zone > domain1.com > Check Records > results seems good with: No errors were found in the records file /var/named/domain1.com.hosts and /var/named/domain2.com.hosts.

Fri, 08/23/2013 - 06:08
eiger3970

Well, checked a few things today and site still not showing after virtualmin reinstall and restore?

I tried disabling/enabling BIND dns servers.

I restored old www.domain1.com file which worked briefly, but now doesn't work.

Virtualmin > Webmin > Networking > Network Configuration > Host addresses > 192.168.1.163 > Host and Addresses > Hostnames > I added ns1.domain1.com ns2.domain2.com > Save.

Virtualmin > System Settings > Re-Check Configuration > needed to add 127.0.0.1 to DNS servers.

Virtualmin > Terminal > /etc/httpd/httpd.conf had little data and no logs to check.

Virtualmin > Terminal > /var/log/virtualmin > access and error logs for website.

Virtualmin > System Settings > Virtualmin Configuration > Configuration category: Network settings > Default IP address for DNS records: Automatically detect external address > Save > System Information.

Virtualmin > Webmin > Servers > BIND DNS Server > Existing DNS Zones > Zone > domain1.com > domain1.com NS - Name Server > DNS record details > Name server DNS name: (changed from localhost.localdomain. to) www.domain1.com. > Save.

Virtualmin > Webmin > Servers > BIND DNS Server > Existing DNS Zones > Zone > domain1.com > domain1.com NS - Name Server > DNS record details > Create Record of Type: NS - Name Server > Create Record of Type > DNS record details > Record name: Same as domain: www.domain1.com > Name server DNS name: ns2.domain1.com > Create.

So, I have created ns1.domain1.com and ns2.domain1.com and an A record to the WAN. The registrar has the same settings of ns1.domain1.com and ns2.domain1.com pointing to the WAN. Still no website loading?

Fri, 08/23/2013 - 06:31
Locutus

To do any tests from my end here, I'd need to know the actual domain names and server IP addresses in question. Trying to debug an issue like this by "remote guessing" is not optimal. :)

Additionally, I can offer "personal support": http://www.virtualmin.com/node/29342

Sat, 08/24/2013 - 05:52
eiger3970

Thanks, but I don't have any money to pay for paid support. I prefer to keep the information public on this forum for those interested in advancing technology and knowledge. I will try the virtualmin irc, so the domain name isn't on this forum.

Sat, 08/24/2013 - 07:36
Locutus

Alright, good luck with that.

Sat, 08/24/2013 - 21:54
eiger3970

Thanks, however luck is not needed. Just fellow virtualmin forum people to work with each other to develop the software.

So, virtualmin BIND DNS server settings seem correct with nameserver 1 and nameserver 2 and A record pointing to WAN IP address. Registrat has nameservers 1 and 2 pointing to the WAN IP. How can I check the registrar is really pointing to the WAN as Locutus said the registrar is pointing to an incorrect IP address of 128.237.157.136?

Sun, 08/25/2013 - 02:44
Locutus

"Developing the software"? You're rather expecting free support on a very complex level here, your problems have nothing to do with Virtualmin "development".

Try www.intodns.com. They tell you the active glue records.

Wed, 06/21/2017 - 03:05
eiger3970

Ok, same issue happening again after following the Virtualmin wizard and creating a top level server and a sub-level server. intodns.com says this: Looks like the A records (the GLUE) got from the parent zone check are different than the ones got from your nameservers. You have to make sure your parent server has the same NS records for your zone as you do.I detected some problems as follows: For ns1.domain.tld the parent reported: ['xxx.xxx.xx.xxx'] and your nameservers reported: ['192.168.1.145', 'xxx.xxx.xx.xxx'] For ns2.domain.tld the parent reported: ['xxx.xxx.xx.xxx'] and your nameservers reported: ['xxx.xxx.xx.xxx']

The domain registrar points domain1.tld to virtualserver1's IP. The domain registrar points domain2.tld to ns1.domain1.tld.

Wed, 06/21/2017 - 03:09
eiger3970

Dig results work: $ dig domain1.tld

; <<>> DiG 9.10.3-P4-Ubuntu <<>> domain1.tld ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63171 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 512 ;; QUESTION SECTION: ;domain1.tld. IN A

;; ANSWER SECTION: domain1.tld. 38399 IN A xxx.xxx.xx.xxx

;; Query time: 343 msec ;; SERVER: 8.8.8.8#53(8.8.8.8) ;; WHEN: Wed Jun 21 18:07:32 AEST 2017 ;; MSG SIZE rcvd: 60

$ dig domain2.tld

; <<>> DiG 9.10.3-P4-Ubuntu <<>> domain2.tld ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 52359 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 512 ;; QUESTION SECTION: ;domain2.tld. IN A

;; AUTHORITY SECTION: com.au. 899 IN SOA w.au. support.ausregistry.com.au. 1498032365 1800 300 1814400 1800

;; Query time: 1234 msec ;; SERVER: 8.8.4.4#53(8.8.4.4) ;; WHEN: Wed Jun 21 18:07:40 AEST 2017 ;; MSG SIZE rcvd: 10

Thu, 06/22/2017 - 19:59
eiger3970

Ok, Virtualmin configuration works on virtualserver1, but not on virtualserver2. The DNS settings, template etc appear as per Virtualmin documentation. The DNS troubleshooting loads virtualserver2 only when running command $ host domain2.com publicWanIP, the correct results appear. But command $host domain2.com says: Host domain2.com not found: 3(NXDOMAIN)

Ok, taking a closer look at /var/named/domain1.hosts and /var/named/domain2.hosts and /var/named/domain2.hosts does not have ns1.sk8parks.org.au. IN A xxx.xxx.xx.xxx (public WAN IP) ns2.sk8parks.org.au. IN A xxx.xxx.xx.xxx (public WAN IP) ns1.sk8parks.org.au. IN A xxx.xxx.x.xxx (LAN IP)

So, I can manually add these lines into /var/named/domain2.hosts, however why doesn't Virtualmin add these in when creating a 2nd website?

Thu, 06/22/2017 - 21:47
eiger3970

Ok, taking a closer look at /var/named/domain1.hosts and /var/named/domain2.hosts and /var/named/domain2.hosts does not have ns1.sk8parks.org.au. IN A xxx.xxx.xx.xxx (public WAN IP) ns2.sk8parks.org.au. IN A xxx.xxx.xx.xxx (public WAN IP) ns1.sk8parks.org.au. IN A xxx.xxx.x.xxx (LAN IP)

So, I can manually add these lines into /var/named/domain2.hosts, however why doesn't Virtualmin add these in when creating a 2nd website?

Mon, 06/26/2017 - 22:26
eiger3970

Hello, anybody there?

Wed, 07/12/2017 - 00:59
eiger3970

Ok, fixed.

Topic locked