Dnsmasq - basic configuration
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
1
down vote
favorite
I am trying run dnsmasq server in my local network for translating
name www.mydomain.dev
to IP address 10.254.20.4
.
I need this name to correct signing SSL certificates.
I tried ping host from local machine on which I have installed dnsmasq and
from remote machine (my laptop) by command
ping mydomain.dev
but unfortunately it does not work.
Ping respond:
"Ping request could not find host mydomain.dev. Please check the name and try again."
- In my laptop I have access to host by IP.
- In laptop I have set primary DNS as
10.254.20.4
and second DNS as8.8.8.8
In dnsmasq.config I have such configuration:
listen-address=127.0.0.1
server=/dev/127.0.0.1
local=/localnet/
address=/www.mydomain.dev/10.254.20.4
What is wrong?
Any ideas?
Thanks in advance for any help,
Michaà Â
networking dns dnsmasq
add a comment |Â
up vote
1
down vote
favorite
I am trying run dnsmasq server in my local network for translating
name www.mydomain.dev
to IP address 10.254.20.4
.
I need this name to correct signing SSL certificates.
I tried ping host from local machine on which I have installed dnsmasq and
from remote machine (my laptop) by command
ping mydomain.dev
but unfortunately it does not work.
Ping respond:
"Ping request could not find host mydomain.dev. Please check the name and try again."
- In my laptop I have access to host by IP.
- In laptop I have set primary DNS as
10.254.20.4
and second DNS as8.8.8.8
In dnsmasq.config I have such configuration:
listen-address=127.0.0.1
server=/dev/127.0.0.1
local=/localnet/
address=/www.mydomain.dev/10.254.20.4
What is wrong?
Any ideas?
Thanks in advance for any help,
Michaà Â
networking dns dnsmasq
I think it's due to the configlisten-address=127.0.0.1
. It means that it listens to loopback interface only. I think you need to change it to listen to the LAN's IP address of your "local machine". wiki.archlinux.org/index.php/dnsmasq#DNS_cache_setup
â Lok Lam Cheng
Apr 26 at 14:31
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I am trying run dnsmasq server in my local network for translating
name www.mydomain.dev
to IP address 10.254.20.4
.
I need this name to correct signing SSL certificates.
I tried ping host from local machine on which I have installed dnsmasq and
from remote machine (my laptop) by command
ping mydomain.dev
but unfortunately it does not work.
Ping respond:
"Ping request could not find host mydomain.dev. Please check the name and try again."
- In my laptop I have access to host by IP.
- In laptop I have set primary DNS as
10.254.20.4
and second DNS as8.8.8.8
In dnsmasq.config I have such configuration:
listen-address=127.0.0.1
server=/dev/127.0.0.1
local=/localnet/
address=/www.mydomain.dev/10.254.20.4
What is wrong?
Any ideas?
Thanks in advance for any help,
Michaà Â
networking dns dnsmasq
I am trying run dnsmasq server in my local network for translating
name www.mydomain.dev
to IP address 10.254.20.4
.
I need this name to correct signing SSL certificates.
I tried ping host from local machine on which I have installed dnsmasq and
from remote machine (my laptop) by command
ping mydomain.dev
but unfortunately it does not work.
Ping respond:
"Ping request could not find host mydomain.dev. Please check the name and try again."
- In my laptop I have access to host by IP.
- In laptop I have set primary DNS as
10.254.20.4
and second DNS as8.8.8.8
In dnsmasq.config I have such configuration:
listen-address=127.0.0.1
server=/dev/127.0.0.1
local=/localnet/
address=/www.mydomain.dev/10.254.20.4
What is wrong?
Any ideas?
Thanks in advance for any help,
Michaà Â
networking dns dnsmasq
edited Apr 26 at 14:15
![](https://i.stack.imgur.com/Q0hM9.jpg?s=32&g=1)
![](https://i.stack.imgur.com/Q0hM9.jpg?s=32&g=1)
Vlad Spirin
3203417
3203417
asked Apr 26 at 13:09
Michaà Â
61
61
I think it's due to the configlisten-address=127.0.0.1
. It means that it listens to loopback interface only. I think you need to change it to listen to the LAN's IP address of your "local machine". wiki.archlinux.org/index.php/dnsmasq#DNS_cache_setup
â Lok Lam Cheng
Apr 26 at 14:31
add a comment |Â
I think it's due to the configlisten-address=127.0.0.1
. It means that it listens to loopback interface only. I think you need to change it to listen to the LAN's IP address of your "local machine". wiki.archlinux.org/index.php/dnsmasq#DNS_cache_setup
â Lok Lam Cheng
Apr 26 at 14:31
I think it's due to the config
listen-address=127.0.0.1
. It means that it listens to loopback interface only. I think you need to change it to listen to the LAN's IP address of your "local machine". wiki.archlinux.org/index.php/dnsmasq#DNS_cache_setupâ Lok Lam Cheng
Apr 26 at 14:31
I think it's due to the config
listen-address=127.0.0.1
. It means that it listens to loopback interface only. I think you need to change it to listen to the LAN's IP address of your "local machine". wiki.archlinux.org/index.php/dnsmasq#DNS_cache_setupâ Lok Lam Cheng
Apr 26 at 14:31
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
server
is a synonym for local
so your dnsmasq config would contain
listen-address=127.0.0.1
local=/dev/
domain=dev
then open /etc/hosts and add
10.254.20.4 www.mydomain.dev
save and restart dnsmasq
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
server
is a synonym for local
so your dnsmasq config would contain
listen-address=127.0.0.1
local=/dev/
domain=dev
then open /etc/hosts and add
10.254.20.4 www.mydomain.dev
save and restart dnsmasq
add a comment |Â
up vote
1
down vote
server
is a synonym for local
so your dnsmasq config would contain
listen-address=127.0.0.1
local=/dev/
domain=dev
then open /etc/hosts and add
10.254.20.4 www.mydomain.dev
save and restart dnsmasq
add a comment |Â
up vote
1
down vote
up vote
1
down vote
server
is a synonym for local
so your dnsmasq config would contain
listen-address=127.0.0.1
local=/dev/
domain=dev
then open /etc/hosts and add
10.254.20.4 www.mydomain.dev
save and restart dnsmasq
server
is a synonym for local
so your dnsmasq config would contain
listen-address=127.0.0.1
local=/dev/
domain=dev
then open /etc/hosts and add
10.254.20.4 www.mydomain.dev
save and restart dnsmasq
answered Apr 26 at 14:30
ptetteh227
703115
703115
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1028407%2fdnsmasq-basic-configuration%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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
I think it's due to the config
listen-address=127.0.0.1
. It means that it listens to loopback interface only. I think you need to change it to listen to the LAN's IP address of your "local machine". wiki.archlinux.org/index.php/dnsmasq#DNS_cache_setupâ Lok Lam Cheng
Apr 26 at 14:31