securiy is most inportant for airplain.
my writing unperfect ,so may be dangerous .
by the way i have little expirience of domain name server .
so, i have three question.
in dnsmasq
1) does /etc/hosts alow alias ?
2) is /etc/resolv.conf important ?
3) soft link perhaps fail
example
cd /var/www/htdocs/pub/OpenBSD/5.7/
ln -s /home/Auser/i386 i386
what should i do ?
i use dnsmaq in pxe server ,because it is simple .
(/etc/rc.d/dhcpd stop , don't run tftpd)
network is next.
sis0
openbsd PXE server=dnsmasq
ne3 :192.168.11.1
|
PC ( openbsd will be installed)
A) /etc/dnsmasq.conf
listen-address=127.0.0.1
listen-address=192.168.11.1
interface=fxp0
dhcp-range=192.168.11.10,192.168.11.12,12
hdhcp-boot=pxeboot
enable-tftp
tftp-root=/tftpboot
B) /etc/hosts
127.0.0.1 localhost
::1 localhost
192.168.11.1 01.net
192.168.11.1 02.net <---alias OK?
C)/etc/nginx/nginx.conf
worker_processes 1;
worker_rlimit_nofile 1024;
events {
worker_connections 800;
}
http {
include mime.types;
default_type application/octet-stream;
index index.html index.htm;
keepalive_timeout 65;
server_tokens off;
server {
listen 80;
listen [::]:80;
server_name 01.net;
root /var/www/htdocs;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/www/htdocs;
}
}
server {
listen 80;
listen [::]:80;
server_name 02.net;
root /var/www/htdocs/pub/OpenBSD/5.7/i386;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/www/htdocs/pub/OpenBSD/5.7/i386;
}
}
shell script
-------------
ifconfig fxp0 192.168.11.1/24
/etc/rc.d/dnsmasq restart
/etc/rc.d/nginx restart
to upgrade
---------------------------------
use 01.net -> /pub/OpenBSD/5.7/i386
use 02.net -> /
this plane fly , but it may drop .
-----
regards