Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wie kann ich VirtualHosts auf interne ips legen ?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
lordmat
n00b
n00b


Joined: 30 Jul 2003
Posts: 52
Location: Tübingen

PostPosted: Thu Oct 16, 2003 4:38 pm    Post subject: Wie kann ich VirtualHosts auf interne ips legen ? Reply with quote

Hi ich hab ein ircd auf meinem router rennen so jetzt würde ich gerne auf eine ip von eth0 zb 192.168.0.5 eine nicht vorhandene domain legen zb powerd.by.gentoo-user.DE

ich hab die ip und die host in /etc/hosts eingetragen aber funtzt leider nicht :-(

kann mir vlleicht jemand weiter helfen ? danke im voraus

gruß lordmat
Back to top
View user's profile Send private message
MrMagic
n00b
n00b


Joined: 01 Oct 2003
Posts: 23

PostPosted: Thu Oct 16, 2003 5:24 pm    Post subject: Reply with quote

hi,

hmmm, wenn ich das richtig vertanden habe dann willst du das dein ircd unter
ircserver.domain.de oder so zu erreichen ist ??? von allen rechnern im lokalen Netzt ??? Dann brauchst du nen DNServer, also bind (oder was aehnliches) installieren und fertig :wink:

Gruss Magic
Back to top
View user's profile Send private message
lordmat
n00b
n00b


Joined: 30 Jul 2003
Posts: 52
Location: Tübingen

PostPosted: Fri Oct 17, 2003 8:45 am    Post subject: Reply with quote

hi
nee das tut ja :) ich will das wenn ich zb mit irssi auf meiner server connecte und zb die ip 192.168.0.5 hab das anstat der ip zb hallo.ihr.da steht :)
Back to top
View user's profile Send private message
favo
n00b
n00b


Joined: 15 Oct 2003
Posts: 18

PostPosted: Fri Oct 17, 2003 1:38 pm    Post subject: Reply with quote

dafür brauchst du auch ein reverselookup (IP > Domain) .. ob das via config ala /etc/hosts ohne NS möglich ist, no idea :) ich würde dafür auch bind verwenden :)
Back to top
View user's profile Send private message
Deever
Veteran
Veteran


Joined: 06 Jul 2002
Posts: 1354
Location: Zürich / Switzerland

PostPosted: Fri Oct 17, 2003 3:15 pm    Post subject: Reply with quote

Oder djbdns.
Oder dnsmasq.

Gruß,
dev
Back to top
View user's profile Send private message
lordmat
n00b
n00b


Joined: 30 Jul 2003
Posts: 52
Location: Tübingen

PostPosted: Sun Oct 19, 2003 2:49 pm    Post subject: Reply with quote

dnsmasq hab ich rennen aber an dem liegt es net

ja mit bind hab ich es auch schon versucht hab ne zone auf 192 angelegt und dort die vhost angelegt aber leider funtzt das net wirklich ich frag mich nur warum dies nicht geht? auf ipv6 hab ich es ja auch hingebracht sub domains zu legen :wink: nur auf eth0 vhosts zu legen geht net naja

aber danke an euch :D
Back to top
View user's profile Send private message
favo
n00b
n00b


Joined: 15 Oct 2003
Posts: 18

PostPosted: Mon Oct 20, 2003 11:30 am    Post subject: Reply with quote

jetzt grob als beispiel auf die schnelle default 127er angepasst könnte z.B. so aussehen:

in der named.conf extra:
Code:
zone "0.168.192.in-addr.arpa" IN {
        type master;
        file "192.168.0.zone";
        check-names fail;
        allow-update { none; };
};



und das neue file 192.168.0.zone dann in etwa so:
Code:
$ORIGIN 0.168.192.in-addr.arpa.

@                       1D IN SOA       localhost. root.localhost. (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum

                        1D IN NS        localhost.
5                       1D IN PTR       powerd.by.gentoo-user.DE.


das würde z.b. 192.168.0.5 auf "powerd.by.gentoo-user.DE" setzen und sollte dann von deinem IRCD als solches auch akzeptiert werden wenn umgekehrt "gentoo-user.de" von deinem NS intern verwaltet und so eingerichtet wurde das "powerd.by.gentoo-user.DE" auf "192.168.0.5" resolved :)
Back to top
View user's profile Send private message
lordmat
n00b
n00b


Joined: 30 Jul 2003
Posts: 52
Location: Tübingen

PostPosted: Mon Oct 20, 2003 1:03 pm    Post subject: Reply with quote

Hi favo danke erst mal

also habe alles so gemacht wie du es gesagt hast habe dann von einem anderen rechner den dns auf 192.168.0.5 versucht klappt auch siehe

.:lordmat:. DNS Report .:lordmat:.
NickName: lordi
Address : 192.168.0.5
Resolved: powerd.by.gentoo-user.DE
.:lordmat:.

so aber so bald ich aufen ircd connectet bleibt die ip

.:15:10:28:. Join: lordi (*!lordmat@192.168.0.5) #dialin-net

ich habe mal aus spaß noch ein irc server drauf gemacht unreal ircd
habe dort das selbe versucht dachte es liegt vlleicht beim ircd aber

*** lordmat (lordmat@192.168.0.5) has joined channel #lobby

da war das selbe hm kruzifix :?
Back to top
View user's profile Send private message
favo
n00b
n00b


Joined: 15 Oct 2003
Posts: 18

PostPosted: Mon Oct 20, 2003 1:30 pm    Post subject: Reply with quote

der forward lookup ist auch eingerichtet? Ob ein Eintrag in /etc/hosts ausreicht weiss ich nicht, denke nicht, aber bin mir nicht sicher, via bind könnte es so aussehen:

named.conf
Code:
zone "gentoo-user.DE" IN {
        type master;
        file "gentoo-user.de";
};



gentoo-user.de:
Code:
$ORIGIN gentoo-user.de.
@                       1D IN SOA       @ root (
                                        43              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum

                        1D IN NS        @
powerd.by                 IN      A       192.168.0.5
Back to top
View user's profile Send private message
lordmat
n00b
n00b


Joined: 30 Jul 2003
Posts: 52
Location: Tübingen

PostPosted: Mon Oct 20, 2003 1:42 pm    Post subject: Reply with quote

favo brauch ich da net noch son rev wie bei ipv6?

Code:
$TTL 3D

0.c.4.0.0.c.b.0.e.f.f.3.ip6.int..       IN      SOA     n-s.gotdns.org n-s.gotdns.org. (
                        2001110501
                        3H
                        15M
                        1W
                        1D )
        IN      NS      ns.mfnx.ig3.net.
$ORIGIN 0.c.4.0.0.c.b.0.e.f.f.3.ip6.int.

6.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 IN PTR faehrt.und.halted.net.
7.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 IN PTR sdsl.20.4.85.2-fast.und.halted.net


hm wie gesagt alles so gemacht auch mit der zone aber hm ka mag mich net host -t A powerd.by.gentoo-users.DE

Host powerd.by.gentoo-users.DE not found: 3(NXDOMAIN)
Back to top
View user's profile Send private message
favo
n00b
n00b


Joined: 15 Oct 2003
Posts: 18

PostPosted: Mon Oct 20, 2003 1:48 pm    Post subject: Reply with quote

lordmat wrote:
[..]
hm wie gesagt alles so gemacht auch mit der zone aber hm ka mag mich net host -t A powerd.by.gentoo-users.DE

Host powerd.by.gentoo-users.DE not found: 3(NXDOMAIN)


Bei IPv6 frag mich nich, bisher nix mit gemacht :)

gentoo-users oder gentoo-user? Wenn du copy & paste von meiner config eben gemacht hast, müsste es gentoo-user sein, hoffe da liegt der fehler :)

Ansonsten:
Wird der Nameserver auch angesprochen auf dem es intern verwaltet wird?
Back to top
View user's profile Send private message
lordmat
n00b
n00b


Joined: 30 Jul 2003
Posts: 52
Location: Tübingen

PostPosted: Mon Oct 20, 2003 1:54 pm    Post subject: Reply with quote

So ich hab jetzt alles mal umgeschrieben zu

lordmat.go-moo.info.net weil powerd.by.gento-users.de war belegt mit ner ip ;)

so hab des jetzt auch auf 192.168.0.6 gelegt
Code:

.:lordmat:. DNS Report .:lordmat:.
 NickName:
 Address : 192.168.0.6
 Resolved: lordmat.go-moo.info.net
.:lordmat:.


Code:

.:lordmat:. DNS Report .:lordmat:.
 NickName:
 Address : lordmat.go-moo.info.net
 Lookup Failed: Address Can't Be Resolved!
.:lordmat:.


hm ich verzweifel :) des muss doch gehn :D [/code]
Back to top
View user's profile Send private message
favo
n00b
n00b


Joined: 15 Oct 2003
Posts: 18

PostPosted: Mon Oct 20, 2003 1:57 pm    Post subject: Reply with quote

Ja, wenn dein Nameserver auf info.net reagiert :)

Wie sehen die Einträge dafür in der named.conf & das zonen-file selbst aus?
Back to top
View user's profile Send private message
lordmat
n00b
n00b


Joined: 30 Jul 2003
Posts: 52
Location: Tübingen

PostPosted: Mon Oct 20, 2003 2:52 pm    Post subject: Reply with quote

so ich habs jetzt ;) *puh*

schwere geburt =) muste in /etc/resolv.conf als nameserver 127.0.0.1
umstelln und ircd rehashen dann klappte das auf einmal ;)

bin so froh das des jetzt geht =)

danke euch allen

gruß lordmat

http://lordmat.free-bsd.org

oder mal besuchen irc.in-der.eu.org =D
Back to top
View user's profile Send private message
favo
n00b
n00b


Joined: 15 Oct 2003
Posts: 18

PostPosted: Mon Oct 20, 2003 2:58 pm    Post subject: Reply with quote

na dann is ja alles wunderbar nu :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum