- In documentation for BIND I've founded info about using option rrset-order=fixed, but there recommends to recompile with --with-fixed-rrset, so:
- 1. Added in /etc/apt/sources.list string "deb-src"
- 2. aptitude update; aptitude install build-essential devscripts fakeroot; aptitude -R build-dep bind9
- 3. apt-get source bind9 and wrote --with-fixed-rrset into configure-section of debian/rules
- 4. dpkg-buildpackage -uc -us
- 5. dpkg -i *
- named -V returns:
- BIND 9.7.3 built with '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc/bind' '--localstatedir=/var' '--enable-threads' '--enable-largefile' '--with-libtool' '--enable-shared' '--enable-static' '--with-openssl=/usr' '--with-gssapi=/usr' '--with-gnu-ld' '--with-dlz-postgres=no' '--with-dlz-mysql=no' '--with-dlz-bdb=yes' '--with-dlz-filesystem=yes' '--with-dlz-ldap=yes' '--with-dlz-stub=yes' '--with-geoip=/usr' '--with-fixed-rrset' '--enable-ipv6' 'CFLAGS=-fno-strict-aliasing -DDIG_SIGCHASE -O2' 'LDFLAGS=' 'CPPFLAGS='
- in named.conf.options added:
- rrset-order {
- class IN type A name "mydomain.com" order fixed;
- order fixed;
- };
- in my zone, host "test" have several A-recods:
- test A 2.2.2.2
- test A 3.3.3.3
- test A 1.1.1.1
- dig test.mydomain.com @ipofmydns always return
- test A 1.1.1.1
- test A 2.2.2.2
- test A 3.3.3.3
- But it must return 2.2.2.2, 3.3.3.3, 1.1.1.1 as in zone
SHARE
TWEET
Untitled
a guest
Sep 19th, 2012
32
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data

