What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

dnsmasq entry pointing to internal ip not working

untarded

New Around Here
I just purchased the ac68u and flashed 378.50.

I've enabled dhcp and enabled jffs scripts. I successfully added a dnmasq.conf.add which appended the dnsmasq.conf file on reboot:

Code:
pid-file=/var/run/dnsmasq.pid
user=nobody
bind-dynamic
interface=br0
interface=ppp1*
no-dhcp-interface=ppp1*
resolv-file=/tmp/resolv.conf
servers-file=/tmp/resolv.dnsmasq
no-poll
no-negcache
cache-size=1500
min-port=4096
dhcp-range=lan,192.168.1.100,192.168.1.149,255.255.255.0,86400s
dhcp-option=lan,3,192.168.1.1
dhcp-option=lan,252,"\n"
dhcp-lease-max=253
dhcp-authoritative
address=/foobar.com/192.168.1.160

But I can't get foobar.com to point to my internal ip.

Anyone else doing this? I don't know where I'm going wrong.
 
Since you are trying to assign a DNS name to host you should use the hosts file and not the address directive which is used to override entire domains.
 
I just purchased the ac68u and flashed 378.50.

I've enabled dhcp and enabled jffs scripts. I successfully added a dnmasq.conf.add which appended the dnsmasq.conf file on reboot:

Code:
pid-file=/var/run/dnsmasq.pid
user=nobody
bind-dynamic
interface=br0
interface=ppp1*
no-dhcp-interface=ppp1*
resolv-file=/tmp/resolv.conf
servers-file=/tmp/resolv.dnsmasq
no-poll
no-negcache
cache-size=1500
min-port=4096
dhcp-range=lan,192.168.1.100,192.168.1.149,255.255.255.0,86400s
dhcp-option=lan,3,192.168.1.1
dhcp-option=lan,252,"\n"
dhcp-lease-max=253
dhcp-authoritative
address=/foobar.com/192.168.1.160

But I can't get foobar.com to point to my internal ip.

Anyone else doing this? I don't know where I'm going wrong.

Not 100% sure, but have you tried

Code:
server=/foobar.com/192.168.1.160
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top