DNS forward override for single host
-
hi,
I believe dns forward rule can be the solution to my problem…but can't understand how to set it up.
Host
Name of the host, without domain part. ----->> mean the dns ip that should override the current settings?
Domain Domain of the host ----------->> mean the network domain ? eg HOME?
IP address IP address of the host ----------->> mean the Ip address of the host that should change it's dns with the rule?I really appreciate any help, kindly regards
-
forgot to say the problem ::)
1 lan
2 wan (wan, opt1 (static ip))
1 dmz
1 lan host that is natted to the wan2 ip to be reached as the static ip.WAN2 WAN(primary)
static IP private IP
| |
| |
opt1 wan
gateway gateway
| |
| |
–-------------------------------------
(opt1) (wan)pfsense
(lan) (dmz)|
LAN
| |
x Y host natted to Opt1 (to be reached as the static ip )Things works if u make wan2 as the primary wan so I believe it's a dns problem cause u can't set up opt1 dns.
I hope someone most expert could tell me an advice.
-
I don't know precisely enough what you are trying to do because you don't say the context from which x is "to be reached as the static IP" - the internet or systems downstream of your pfSense box.
Here's a case where I have used DNS forward override. My configuration:
Internet <–> ADSL Modem/Router <--> pfSense <--> LAN
/|
+-----> DMZ (OPT1)I want my web server on the pfSense OPT1 interface to be accessible from the internet. My ISP assigns me a dynamic IP address so I have registered a dynamic DNS name zzzz.dyndns.org. I have setup a port forwarding rule and static route on my ADSL modem so incoming (from the internet) accesses to TCP port 80 go to my web server downstream of pfSense interface OPT1. All my systems downstream of pfSense use the pfSense DNS forwarder as their DNS. On my local network (LAN) I couldn't access my webserver on the DMZ by the name zzzz.dyndns.org (because the Internet name server returns the IP address of my ADSL modem, which is the correct thing to do to get to my web server from the Internet) so I created an override entry in the pfSense DNS forwarder (host = zzzz, domain = dyndns.org, IP address = web server's IP address on the pfSense OPT1 subnet). Now all my systems downstream of pfSense get the OPT1 subnet address as the IP address of zzzz.dyndns.org while systems on the Internet get the most recently registered IP address of my ADSL modem.