Community discussions

MikroTik App
 
IMA17
just joined
Topic Author
Posts: 2
Joined: Fri Dec 10, 2021 11:53 am

Help with Local DNS forwarding

Fri Dec 10, 2021 12:03 pm

Hi,

I just joined the RouterOs crew (coming from DD-WRT). I've got the following problem. I have a Server running at static ip (lease): 192.168.88.200. I want all the (local) subdomain hostnames " *.router.test" to be redirected to this IP:

Image

I followed the wiki but it does not seem to work for me. See the result:
Image
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19325
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Help with Local DNS forwarding

Fri Dec 10, 2021 4:17 pm

I dont have a clue what you mean.
a. you want all users on the lan to reach the server via a domain name (dyndns name) associated with the WANIP?
 
2frogs
Forum Veteran
Forum Veteran
Posts: 713
Joined: Fri Dec 03, 2010 1:38 am

Re: Help with Local DNS forwarding

Fri Dec 10, 2021 5:28 pm

/ip dns static add address=192.168.88.200 regexp=".*\\.router\\.test\$"
This works for me.
 
IMA17
just joined
Topic Author
Posts: 2
Joined: Fri Dec 10, 2021 11:53 am

Re: Help with Local DNS forwarding

Fri Dec 10, 2021 6:23 pm

/ip dns static add address=192.168.88.200 regexp=".*\\.router\\.test\$"
This works for me.
Hi thank you very much. This is exactly what I needed. Guess I have a lot more to learn

Who is online

Users browsing this forum: Bing [Bot] and 53 guests