Quantcast
Channel: EdgeRouter topics
Viewing all articles
Browse latest Browse all 20028

Static host mapping not reflected on other VLANs

$
0
0

I got an EdgeRouter with eth1 (10.23.15.x) and eth1.2 (10.23.16.x).

Static host mapping (guestwifi.mydomain.com) works fine on eth1 (DNS 10.23.15.1), but not eth1.2 (DNS 10.23.16.1).

 

I had to change my eth1.2 DNS to point to 10.23.15.1 for it to work.

Any settings to make 10.23.16.1 resolve guestwifi.mydomain.com as well?

 

Below are some of the relevant configs I have on my EdgeRouter.

 

firewall {
    all-ping enable
    broadcast-ping disable
    ipv6-receive-redirects disable
    ipv6-src-route disable
    ip-src-route disable
    log-martians enable
    name 15_to_16 {
        default-action drop
        description ""
        rule 1 {
            action accept
            destination {
                address 10.23.15.10
                port 8880
            }
            log disable
            protocol tcp
            source {
                group {
                    address-group ADDRv4_eth1.2
                }
            }
        }
    }
    name WAN_IN {
        default-action drop
        description "WAN to internal"
        rule 10 {
            action accept
            description "Allow established/related"
            state {
                established enable
                related enable
            }
        }
        rule 20 {
            action drop
            description "Drop invalid state"
            state {
                invalid enable
            }
        }
    }
    name WAN_LOCAL {
        default-action drop
        description "WAN to router"
        rule 10 {
            action accept
            log disable
            protocol tcp
            source {
            }
        }
        rule 20 {
            action accept
            description "Allow established/related"
            state {
                established enable
                related enable
            }
        }
        rule 30 {
            action drop
            description "Drop invalid state"
            state {
                invalid enable
            }
        }
    }
    receive-redirects disable
    send-redirects enable
    source-validation disable
    syn-cookies enable
}
interfaces {
    ethernet eth0 {
        address 192.168.1.10/24
        description Internet
        duplex auto
        firewall {
            in {
                name WAN_IN
            }
            local {
                name WAN_LOCAL
            }
        }
        speed auto
    }
    ethernet eth1 {
        address 10.23.15.1/24
        description Local
        duplex auto
        speed auto
        vif 2 {
            address 10.23.16.1/24
            description "Guest VLAN"
            mtu 1500
        }
    }
    ethernet eth2 {
        address 192.168.2.1/24
        description "Local 2"
        duplex auto
        speed auto
    }
    loopback lo {
    }
}
protocols {
    static {
        route 0.0.0.0/0 {
            next-hop 192.168.1.254 {
                distance 1
            }
        }
    }
}
service {
    dhcp-server {
        disabled false
        hostfile-update disable
        shared-network-name GUEST {
            authoritative disable
            subnet 10.23.16.0/24 {
                default-router 10.23.16.1
                dns-server 10.23.15.1
                dns-server 165.21.100.88
                lease 86400
                start 10.23.16.11 {
                    stop 10.23.16.254
                }
                unifi-controller 10.23.15.10
            }
        }
        shared-network-name STAFF {
            authoritative disable
            subnet 10.23.15.0/24 {
                default-router 10.23.15.1
                dns-server 10.23.15.1
                dns-server 165.21.100.88
                lease 86400
                start 10.23.15.100 {
                    stop 10.23.15.254
                }
                unifi-controller 10.23.15.10
            }
        }
        use-dnsmasq disable
    }
    dns {
        forwarding {
            cache-size 150
            listen-on eth1
            listen-on eth1.2
            name-server 165.21.100.88
            name-server 165.21.83.88
        }

Viewing all articles
Browse latest Browse all 20028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>