pfsense + virtualmin + bind + namecheap
Hi all,
I want to host a webserver on my own with a domain from namecheap:
namecheap as as a domain host.
isp provider modem as a bridge.
pfsense (pppoe) as a firewall, ids and with static ip.
virtualmin as a control panel.
bind as a nameserver.
-
namecheap domain:
Domain - Advanced DNS - Type:
Type Host Value TTL
NS Record ns1.domain.com. xx.xx.xx.xx Automatic
NS Record ns2.domain.com. xx.xx.xx.xx Automatic -
pfsense (pppoe) as a firewall, ids and with static ip.
wan address xx.xx.xx.xx nat port forward to virtualmin/webserver
(may be later i will configure it to dmz)
3.I followed the instructions here (How do I setup nameservers for my server?):
“DNS Frequently Asked Questions – Virtualmin”
Below the recordfile in “/var/lib/bind/domain.com.hosts”
Webmin - Servers - Bind DNS Server
$ttl 3600
@ IN SOA ns1.domain.com. root.ns1.domain.com. (
1647263334
3600
600
1209600
3600 )
@ IN NS ns1.domain.com.
@ IN NS ns2.domain.com.
domain.com. IN A xx.xx.xx.xx
ns1.domain.com. IN A xx.xx.xx.xx
ns2.domain.com. IN A xx.xx.xx.xx
mail.domain.com. IN A xx.xx.xx.xx
domain.com. IN MX 5 mail.domain.com.
domain.com. IN TXT "v=spf1 a mx a:domain.com ip4:192.168.100.19 ip4:xx.xx.xx.xx ip6:xxxx::xxxx:xxxx:xxxx:xxxx ?all"
subdomain.domain.com. IN A xx.xx.xx.xx
mail.subdomain.domain.com. IN A xx.xx.xx.xx
subdomain.domain.com. IN MX 5 mail.subdomain.domain.com.
- Virtualmin - System Settings - Server Template - Default Setting - Bind DNS Domain:
Master DNS server hostname - Hostname: ns1.domain.com
Additionalmanually configured nameservers: ns2.domain.com
Webmin - Servers - Check BIND Config = “No errors were found in the BIND configuration file /etc/bind/named.conf or referenced zone files.”
user@server:~$ nslookup domain.com
Server: 127.0.0.53
Address: 127.0.0.53#53
Non-authoritative answer:
*** Can't find domain.com: No answer
Any help where I made a mistake? Or did I forget something?
Do I have any errors in namecheap, pfsense, virtualmin or bind?
SYSTEM INFORMATION | |
---|---|
OS type and version | ubuntu 20.04 lts |
Webmin version | 1.990 |
Virtualmin version | 6.17-3 |
Related packages | SUGGESTED |