DNS Resolver -> Host Override
-
Hey all,
Host override isn't working some how…
i want example.com to be resolved as IP address 10.0.0.8.
When i ping on a client pc to example.com i do not get 10.0.0.8 as response back.
The client has the pfsense host as DNS server in ipconfig.
Am i missing some kind of setting ?
Thanks!
-
are you sure your using the resolver and not forwarder?
This really is click click..
So your client only has pfsense as dns? Or does it also have others? Did you hit apply in the top after you created the override?
-
ahh i see, your pinging pfsense.example.com.
If i ping that it works indeed. Is there a way to override the whole domain incl. sub domains etc. (i basically only wanna override example.com)
-
so you want a domain override? You want to point it to another nameserver?
Or do you want ANYTHING.example.com to point to 1 IP address? Or something.anything.otherthing.example.com also to go to 1 IP?
There was a sim thread a while back.. Can you explain your use case so we can find the correct solution to what your wanting, or point you down the correct path to the solution, etc.
if what you want is my example above to point anything.example.com or say something.anything.otherthing.example.com to point to 1 IP..
in the custom option box
server:
local-zone: "example.com" redirect
local-data: "example.com A 10.0.0.8"C:>dig something.example.com +short
10.0.0.8C:>dig something.subdomain.example.com +short
10.0.0.8C:>dig something.subdomain.subdomainother.example.com +short
10.0.0.8 -
What i want is that example.com AND www.example.com points to 1 IP address.
Thanks! -
if you only want those 2 what happens if you do something like ftp.example.com what is that suppose to resolve too?
In your 2 examples just create a override for www host, example.com as domain, for example.com just create host example and domain com, or any other tld see my example.org in overrides
-
if you only want those 2 what happens if you do something like ftp.example.com what is that suppose to resolve too?
In your 2 examples just create a override for www host, example.com as domain, for example.com just create host example and domain com, or any other tld see my example.org in overrides
ftp.example.com can resolve to nothing, because it's not something i use internally ;)
Thanks for your help, i've added the overrides as you suggested, it works perfectly!
-
but it could resolve to something you don't want, etc.. I would prob use the wildcard method in your case, I assume example.com was just that an example and not your domain your using.
-
but it could resolve to something you don't want, etc.. I would prob use the wildcard method in your case, I assume example.com was just that an example and not your domain your using.
Yeah thats right, how can i use the wildcard method? i can't use *
-
in my previous example
server:
local-zone: "example.com" redirect
local-data: "example.com A 10.0.0.8"this will direct anything.anything.etc.example.com to the IP you use..
-
in my previous example
server:
local-zone: "example.com" redirect
local-data: "example.com A 10.0.0.8"this will direct anything.anything.etc.example.com to the IP you use..
Thanks, this is what i wanted in the first place ;)