Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dnsmasq changing from working .dev to .local

I have configured dnsmasq on mac os high sierra with *.dev domains to point to 127.0.0.1 and it all worked great. But now I want to change my localhost domains from *.dev to *.local, so I changed it in dnsmasq.confg file and created a resolver 'local' for it. but dnsmasq doesn't seem to referesh the domains. And now it doesn't work with any of them .dev or .local.

Here are my configurations :

My /usr/local/etc/dnsmasq.conf file has 'address=/.local/127.0.0.1'

My Resolver , /etc/resolver/local has "nameserver 127.0.0.1"

/Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist service is also loaded.

I don't know what should I do next so that domain.dev becomes domain.local now ?

If I do dig domain.local , this is what I get

enter image description here

like image 880
Sohail Avatar asked Nov 07 '22 13:11

Sohail


1 Answers

You should change .local to .test, and it should work.

like image 75
Hanteed Avatar answered Nov 15 '22 11:11

Hanteed