# Post your sanitized post-cfg.sh

**URL:** <https://forum.alta.inc/t/post-your-sanitized-post-cfg-sh/5180>\
**Category:** Routers\
**Tags:** router\
**Created:** [May 5, 2025, 11:55pm UTC](https://forum.alta.inc/t/post-your-sanitized-post-cfg-sh/5180 "2025-05-05T23:55:05Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![erpn7](https://forum.alta.inc/letter_avatar_proxy/v4/letter/e/f475e1/32.png) [@erpn7](https://forum.alta.inc/u/erpn7)\
**Post date:** [May 5, 2025, 11:55pm UTC](https://forum.alta.inc/t/post-your-sanitized-post-cfg-sh/5180/1 "2025-05-05T23:55:05Z")

</div>

let’s create a “central” repo with different **post-cfg.sh** examples for Route10  
I’ll start with mine, that adds CNAME records

> #!/bin/sh
> 
> # #Add CNAME records
> 
> for cname in ex1 ex2 ex3 ex4; do  
> uci add dhcp cname  
> uci set dhcp.@cname[-1].cname=“${cname}.local.lan”  
> uci set dhcp.@cname[-1].target=“test.local.lan”  
> done
> 
> # #Commit changes and restart services
> 
> uci commit dhcp  
> /etc/init.d/dnsmasq restart

_my alternate motive_  
im trying to figure out a way to assign the DoH settings from /etc/config/https-dns-proxy to individual vlans. example lan\_2 to only use listen\_port ‘5055’ ([doh.opendns.com](http://doh.opendns.com)) and lan\_3 to only use listen\_port ‘5054’ ([cloudflare-dns.com](http://cloudflare-dns.com))  
my experiments failed with

> uci delete https-dns-proxy.@https-dns-proxy[0]  
> uci delete https-dns-proxy.@https-dns-proxy[1]
> 
> uci set dhcp.@dhcp[0].list.@dhcp\_option[1]=“option:dns-server,127.0.0.1#5055”  
> uci set dhcp.@dhcp[1].list.@dhcp\_option[1]=“option:dns-server,127.0.0.1#5054”
> 
> uci set dhcp.@lan\_2.dns\_service=‘1’  
> uci set dhcp.@lan\_3.dns\_service=‘1’

if anyone has ideas, im open to try them.

---

_[View the full topic](https://forum.alta.inc/t/post-your-sanitized-post-cfg-sh/5180)._
