sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #20330
SV: Fing fejl i named
Det var medninge at den skulle cache adresser (forwarding).
Men jeg er ikke sikker at den gør det.
Her er min named.boot
;
; a caching only nameserver config
;
directory /var/named
cache . named.ca
primary 0.0.127.in-addr.arpa named.local
Her er min named.ca
; This file holds the information on root name servers
needed to
; initialize cache of Internet domain name servers
; (e.g. reference this file in the "cache . <file>"
; configuration file of BIND domain name servers).
;
; This file is made available by InterNIC registration
services
; under anonymous FTP as
; file /domain/named.root
; on server FTP.RS.INTERNIC.NET
; -OR- under Gopher at RS.INTERNIC.NET
; under menu InterNIC Registration Services
(NSI)
; submenu InterNIC Registration Archives
; file named.root
;
; last update: Aug 22, 1997
; related version of root zone: 1997082200
;
; formerly NS.INTERNIC.NET
;
. 3600000 IN NS A.ROOT-SERVERS.NET.
A.ROOT-SERVERS.NET. 3600000 A 198.41.0.4
;
; formerly NS1.ISI.EDU
;
. 3600000 NS B.ROOT-SERVERS.NET.
B.ROOT-SERVERS.NET. 3600000 A 128.9.0.107
;
; formerly C.PSI.NET
;
. 3600000 NS C.ROOT-SERVERS.NET.
C.ROOT-SERVERS.NET. 3600000 A 192.33.4.12
;
; formerly TERP.UMD.EDU
;
. 3600000 NS D.ROOT-SERVERS.NET.
D.ROOT-SERVERS.NET. 3600000 A 128.8.10.90
;
; formerly NS.NASA.GOV
;
. 3600000 NS E.ROOT-SERVERS.NET.
E.ROOT-SERVERS.NET. 3600000 A 192.203.230.10
;
; formerly NS.ISC.ORG
;
. 3600000 NS F.ROOT-SERVERS.NET.
F.ROOT-SERVERS.NET. 3600000 A 192.5.5.241
;
; formerly NS.NIC.DDN.MIL
;
. 3600000 NS G.ROOT-SERVERS.NET.
G.ROOT-SERVERS.NET. 3600000 A 192.112.36.4
;
; formerly AOS.ARL.ARMY.MIL
;
. 3600000 NS H.ROOT-SERVERS.NET.
H.ROOT-SERVERS.NET. 3600000 A 128.63.2.53
;
; formerly NIC.NORDU.NET
;
. 3600000 NS I.ROOT-SERVERS.NET.
I.ROOT-SERVERS.NET. 3600000 A 192.36.148.17
;
; temporarily housed at NSI (InterNIC)
;
. 3600000 NS J.ROOT-SERVERS.NET.
J.ROOT-SERVERS.NET. 3600000 A 198.41.0.10
;
; housed in LINX, operated by RIPE NCC
;
. 3600000 NS K.ROOT-SERVERS.NET.
K.ROOT-SERVERS.NET. 3600000 A 193.0.14.129
;
; temporarily housed at ISI (IANA)
;
. 3600000 NS L.ROOT-SERVERS.NET.
L.ROOT-SERVERS.NET. 3600000 A 198.32.64.12
;
; housed in Japan, operated by WIDE
;
. 3600000 NS M.ROOT-SERVERS.NET.
M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33
;
. 3600000 NS N.ROOT-SERVERS.NET.
; End of File
Her er min maned.conf
// generated by named-bootconf.pl
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
zone "." {
type hint;
file "named.ca";
};
zone "local" {
type master;
file "named.local";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "named.rev-local";
};
zone "home" {
type master;
file "named.home";
};
zone "1.168.192.in-addr.arpa" {
type master;
file "named.rev-home";
};
Her er min named.home
@ IN SOA ppp.home hostmaster.ppp.home (
199901121 ;serial number
28800 7200 3600000 86400 )
IN NS ppp.home
IN MX 10 post
ppp IN A 192.168.1.1
ns IN CNAME ppp
sslug IN A 192.38.71.98
localhost IN A 127.0.0.1
loopback IN A 127.0.0.1
Her er min named.local
@ IN SOA localhost. root.localhost. (
2000030400 ; Serial
28800 ; Refresh
7200 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns.home
MX 10 post.home
ns A 192.168.1.1
post A 192.168.1.3
terminal A 192.168.1.2
jan A 192.168.1.10
nicolas A 192.168.1.11
carina A 192.168.1.12
server4 A 192.168.1.4
Her er min named.rev-home
@ IN SOA ppp.home hostmaster.ppp.home (
199901121 ;serial number
28800 7200 3600000 86400 )
IN NS ppp.home
1 IN PTR post.home
2 IN PTR terminal.home
3 IN PTR ppp.home
4 IN PTR server4.home
5 IN PTR jan.home
6 IN PTR nicolas.home
7 IN PTR carina.home
Her er min named.rev-local
@ IN SOA localhost.local hostmaster.localhost.local (
199909220 ;serial number
604800 86400 2419200 604800 )
@ IN NS localhost.local
1 IN PTR localhost.local
Her er min named.home
@ IN SOA ns.homePostmaster.home (
2000030400 ;serial number
28800 7200 3600000 86400 )
IN NS ns.home
MX 10 post.home
ns A 192.168.1.1
post A 192.168.1.3
terminal A 192.168.1.2
jan A 192.168.1.10
nicolas A 192.168.1.11
carina A 192.168.1.12
server4 A 192.168.1.4
Her er min rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init
scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
if [ -f /etc/redhat-release ]; then
R=$(cat /etc/redhat-release)
arch=$(uname -m)
a="a"
case "_$arch" in
_a*) a="an";;
_i*) a="an";;
esac
NUMPROC=`egrep -c "^cpu[0-9]+" /proc/stat`
if [ "$NUMPROC" -gt "1" ]; then
SMP="$NUMPROC-processor "
if [ "$NUMPROC" = "8" -o "$NUMPROC" = "11" ]; then
a="an"
else
a="a"
fi
fi
# This will overwrite /etc/issue at every boot. So, make any
changes you
# want to make to /etc/issue here or you will lose them when
you reboot.
echo "" > /etc/issue
echo "$R" >> /etc/issue
echo "Kernel $(uname -r) on $a $SMP$(uname -m)" >> /etc/issue
cp -f /etc/issue /etc/issue.net
echo >> /etc/issue
fi
#her kommer min routing
#!/bin/sh
ipchains -F
ipchains -A forward -p tcp -s 0/0 137:139 -j DENY
ipchains -A forward -p udp -s 0/0 137:139 -j DENY
ipchains -A forward -i ppp0 -j MASQ
ipchains -P forward DENY
echo 1 > /proc/sys/net/ipv4/ip_dynaddr
modprobe ip_masq_ftp
modprobe ip_masq_raudio
modprobe ip_masq_irc
modprobe ip_masq_cuseeme
modprobe ip_masq_vdolive
ipchains -M -S 7200 10 160
ipchains -A forward -s 192.168.1.1/32 -j MASQ
ipchains -A forward -s 192.168.1.2/32 -j MASQ
ipchains -A forward -s 192.168.1.3/32 -j MASQ
ipchains -A forward -s 192.168.1.10/32 -j MASQ
>
> Du kan ikke attache filer til sslug lister de filtreres fra,
> insert dem i mail eller angiv URL hvortil du har lagt filerne.
>
> named har jo en del filer, har du testet med "nslookup" ?
> Er den sat til at cache adresser (forwarding) ?
Follow ups
References