Using vyos' DNS for local name resolution

dns

#1

Hi,
I have configured 2 local networks in vyos: LAN + DMZ.

Question:
Dnsmasq normally work when using it for local name resolution.
One must maintain /etc/hosts at least.

Should this work with dnsmasq in vyos, too?

I tried to add entries in /etc/hosts, but local name resolution fails.

Any advise?

THX


#2

You can use static host mapping
set system static-host-mapping host-name example.com inet 127.0.0.1


#3

Thanks.
Is this command set system static-host-mapping host-name example.com inet 127.0.0.1 required to enable static host mapping and I must maintain /etc/hosts additionally?
Or must I execute this command for every single hostname + IP?


#4

how about to try yourself? :wink:


#5

This is a productive router that I don’t want to mess up with some try&error procedures.


#6

do vm and you cann mess up there without limits


#7

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.