DNSmasq on 2 interfacesSetting up dnsmasq for a local networkUsing dnsmasq for accessing multiple nameservers assigned by DHCPSecuring dnsmasq - interface(s)?DNS queries fail from local machine running dnsmasqApache2 Vhosts and DnsMasq, unable to access website from another computer over LAN : ERR_CONNECTION_REFUSEDDHCP (dnsmasq) assigns wrong IP (after openSUSE upgrade)DNSMasq doesn't resolve non-routable IPs on public domain namesdnsmasq: Block manipulated dns responses pointing at captive portal siteSplit nameservers in dnsmasq configurationdnsmasq: stuck in DHCPOFFER after 29 clients
Gambler's Fallacy Dice
Can I modify the report menu?
Have GoT's showrunners reacted to the poor reception of the final season?
Good examples of "two is easy, three is hard" in computational sciences
Why would you put your input amplifier in front of your filtering for and ECG signal?
How do I balance a campaign consisting of four kobold PCs?
How come Arya Stark wasn't hurt by this in Game of Thrones Season 8 Episode 5?
Why can't I share a one use code with anyone else?
How many Dothraki are left as of Game of Thrones S8E5?
Divisor Rich and Poor Numbers
Using `printf` to print variable containing `%` percent sign results in "bash: printf: `p': invalid format character"
Why is the S-duct intake on the Tu-154 uniquely oblong?
Cycling to work - 30mile return
Are spiritual pleasures > carnal pleasures, according to Catholicism?
Shortest amud or daf in Shas?
How to get all possible paths in 0/1 matrix better way?
Error when running ((x++)) as root
Physically unpleasant work environment
Why does string strummed with finger sound different from the one strummed with pick?
Why does Taylor’s series “work”?
Combining two Lorentz boosts
The underlying space of an affine open dense subscheme
Pedaling at different gear ratios on flat terrain: what's the point?
Told to apply for UK visa before other visas
DNSmasq on 2 interfaces
Setting up dnsmasq for a local networkUsing dnsmasq for accessing multiple nameservers assigned by DHCPSecuring dnsmasq - interface(s)?DNS queries fail from local machine running dnsmasqApache2 Vhosts and DnsMasq, unable to access website from another computer over LAN : ERR_CONNECTION_REFUSEDDHCP (dnsmasq) assigns wrong IP (after openSUSE upgrade)DNSMasq doesn't resolve non-routable IPs on public domain namesdnsmasq: Block manipulated dns responses pointing at captive portal siteSplit nameservers in dnsmasq configurationdnsmasq: stuck in DHCPOFFER after 29 clients
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
SysInfo:
- ubuntu 18.04
- external access point (with its own internal linux system) => interface ap1, IP: 192.168.13.1
- external access point (USB stick) => interface ap0, IP: 192.168.12.1
hostapdrunning on ap0dnsmasqrunning without being binded to any interface bc I need it to work on both interfaces- DNS must work on local-network only.
The problem is that when I connect through the ap1 and type "mydomain.com" on my browser it's not working unless I have the USB stick (ap0) attached and working.
IDK if the issue is with hostapd itself or dnsmasq.
My dnsmasq.conf:
localise-queries
resolv-file=/etc/dnsmasq.resolv.conf
no-hosts
addn-hosts=/etc/my.hosts
dhcp-range=192.168.12.20,192.168.12.150,255.255.255.0,12h
dhcp-range=192.168.13.20,192.168.13.150,255.255.255.0,12h
dhcp-option=option:domain-search,local
bind-dynamic
The addresses in the my.hosts file are setup like this:
<IP>t<DOMAIN>
In that file I have all the addresses for both interfaces 192.168.12.1 and 192.168.13.1)
How do I make it work for both interfaces?
Ask for any extra information.
local-area-network dnsmasq hostapd
add a comment |
SysInfo:
- ubuntu 18.04
- external access point (with its own internal linux system) => interface ap1, IP: 192.168.13.1
- external access point (USB stick) => interface ap0, IP: 192.168.12.1
hostapdrunning on ap0dnsmasqrunning without being binded to any interface bc I need it to work on both interfaces- DNS must work on local-network only.
The problem is that when I connect through the ap1 and type "mydomain.com" on my browser it's not working unless I have the USB stick (ap0) attached and working.
IDK if the issue is with hostapd itself or dnsmasq.
My dnsmasq.conf:
localise-queries
resolv-file=/etc/dnsmasq.resolv.conf
no-hosts
addn-hosts=/etc/my.hosts
dhcp-range=192.168.12.20,192.168.12.150,255.255.255.0,12h
dhcp-range=192.168.13.20,192.168.13.150,255.255.255.0,12h
dhcp-option=option:domain-search,local
bind-dynamic
The addresses in the my.hosts file are setup like this:
<IP>t<DOMAIN>
In that file I have all the addresses for both interfaces 192.168.12.1 and 192.168.13.1)
How do I make it work for both interfaces?
Ask for any extra information.
local-area-network dnsmasq hostapd
add a comment |
SysInfo:
- ubuntu 18.04
- external access point (with its own internal linux system) => interface ap1, IP: 192.168.13.1
- external access point (USB stick) => interface ap0, IP: 192.168.12.1
hostapdrunning on ap0dnsmasqrunning without being binded to any interface bc I need it to work on both interfaces- DNS must work on local-network only.
The problem is that when I connect through the ap1 and type "mydomain.com" on my browser it's not working unless I have the USB stick (ap0) attached and working.
IDK if the issue is with hostapd itself or dnsmasq.
My dnsmasq.conf:
localise-queries
resolv-file=/etc/dnsmasq.resolv.conf
no-hosts
addn-hosts=/etc/my.hosts
dhcp-range=192.168.12.20,192.168.12.150,255.255.255.0,12h
dhcp-range=192.168.13.20,192.168.13.150,255.255.255.0,12h
dhcp-option=option:domain-search,local
bind-dynamic
The addresses in the my.hosts file are setup like this:
<IP>t<DOMAIN>
In that file I have all the addresses for both interfaces 192.168.12.1 and 192.168.13.1)
How do I make it work for both interfaces?
Ask for any extra information.
local-area-network dnsmasq hostapd
SysInfo:
- ubuntu 18.04
- external access point (with its own internal linux system) => interface ap1, IP: 192.168.13.1
- external access point (USB stick) => interface ap0, IP: 192.168.12.1
hostapdrunning on ap0dnsmasqrunning without being binded to any interface bc I need it to work on both interfaces- DNS must work on local-network only.
The problem is that when I connect through the ap1 and type "mydomain.com" on my browser it's not working unless I have the USB stick (ap0) attached and working.
IDK if the issue is with hostapd itself or dnsmasq.
My dnsmasq.conf:
localise-queries
resolv-file=/etc/dnsmasq.resolv.conf
no-hosts
addn-hosts=/etc/my.hosts
dhcp-range=192.168.12.20,192.168.12.150,255.255.255.0,12h
dhcp-range=192.168.13.20,192.168.13.150,255.255.255.0,12h
dhcp-option=option:domain-search,local
bind-dynamic
The addresses in the my.hosts file are setup like this:
<IP>t<DOMAIN>
In that file I have all the addresses for both interfaces 192.168.12.1 and 192.168.13.1)
How do I make it work for both interfaces?
Ask for any extra information.
local-area-network dnsmasq hostapd
local-area-network dnsmasq hostapd
asked Feb 4 at 12:23
ZioCainZioCain
34
34
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You need to specify dnsmasq which interface to use what network. You can do this with below change in your dnsmasq.conf file:
dhcp-range=ap0,192.168.12.20,192.168.12.150,255.255.255.0,12h
dhcp-range=ap1,192.168.13.20,192.168.13.150,255.255.255.0,12h
or,
dhcp-range=interface:ap0,192.168.12.20,192.168.12.150,255.255.255.0,12h
dhcp-range=interface:ap1,192.168.13.20,192.168.13.150,255.255.255.0,12h
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f952220%2fdnsmasq-on-2-interfaces%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You need to specify dnsmasq which interface to use what network. You can do this with below change in your dnsmasq.conf file:
dhcp-range=ap0,192.168.12.20,192.168.12.150,255.255.255.0,12h
dhcp-range=ap1,192.168.13.20,192.168.13.150,255.255.255.0,12h
or,
dhcp-range=interface:ap0,192.168.12.20,192.168.12.150,255.255.255.0,12h
dhcp-range=interface:ap1,192.168.13.20,192.168.13.150,255.255.255.0,12h
add a comment |
You need to specify dnsmasq which interface to use what network. You can do this with below change in your dnsmasq.conf file:
dhcp-range=ap0,192.168.12.20,192.168.12.150,255.255.255.0,12h
dhcp-range=ap1,192.168.13.20,192.168.13.150,255.255.255.0,12h
or,
dhcp-range=interface:ap0,192.168.12.20,192.168.12.150,255.255.255.0,12h
dhcp-range=interface:ap1,192.168.13.20,192.168.13.150,255.255.255.0,12h
add a comment |
You need to specify dnsmasq which interface to use what network. You can do this with below change in your dnsmasq.conf file:
dhcp-range=ap0,192.168.12.20,192.168.12.150,255.255.255.0,12h
dhcp-range=ap1,192.168.13.20,192.168.13.150,255.255.255.0,12h
or,
dhcp-range=interface:ap0,192.168.12.20,192.168.12.150,255.255.255.0,12h
dhcp-range=interface:ap1,192.168.13.20,192.168.13.150,255.255.255.0,12h
You need to specify dnsmasq which interface to use what network. You can do this with below change in your dnsmasq.conf file:
dhcp-range=ap0,192.168.12.20,192.168.12.150,255.255.255.0,12h
dhcp-range=ap1,192.168.13.20,192.168.13.150,255.255.255.0,12h
or,
dhcp-range=interface:ap0,192.168.12.20,192.168.12.150,255.255.255.0,12h
dhcp-range=interface:ap1,192.168.13.20,192.168.13.150,255.255.255.0,12h
answered May 6 at 0:59
ChandanKChandanK
1913
1913
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f952220%2fdnsmasq-on-2-interfaces%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown