Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split Horizon #230

Open
mattslater opened this issue Jul 26, 2017 · 4 comments
Open

Split Horizon #230

mattslater opened this issue Jul 26, 2017 · 4 comments

Comments

@mattslater
Copy link

Hi,

I'm having issues with implementing split horizon with this module. Can you confirm that it's possible and if so would you mind showing me a little example?

I'm at a stage where im having problems with the hash for the zone within view.pp
$zones = {},

A point in the right direction would be great.

Thanks!

@ghost
Copy link

ghost commented Jul 26, 2017

I'm not familiar with the dns::server::view implementation, as that was contributed by someone else - but it appears that the $zones parameter is a hash of the arguments you would pass to dns::zone - for example, if you wanted to have the example.com domain in two different views, internal and external, and prevent zone transfers in the external view, you might do something like this:

dns::server::view { 'internal':
    # (view-specific parameters)...
    zones => {
        'example.com' => {
            # (other zone parameters to define the zone)...
            allow_transfer => 'any',
        },
    }
}
dns::server::view { 'external':
    # (view-specific parameters)...
    zones => {
        'example.com' => {
            # (other zone parameters to define the zone)...
            allow_transfer => 'none',
        },
    }
}

@mattslater
Copy link
Author

Hi Jearls,

Thanks for you help, that worked, although It doesn't look like this module will work for split horizon.

@amateo
Copy link
Contributor

amateo commented Aug 28, 2017

Hi Mattslater,

I'm the coder of the dns::server::view implementation. It is used as Jearls pointed and I'm afraid it doesn't implement split horizon, but I don't know if you could use it to manually configured (manually creating the appropriates views and zones).

@mattslater
Copy link
Author

Hi @amateo

Thanks for taking the time to reply, I have just picked this up again. I will probably end up just configuring them manually :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants