Re: setting up local authorative name server with a no-ip.com registered domain
Vincent Hoffman wrote: On 11/4/09 21:56, Aryeh M. Friedman wrote: I have 3 domains that are registered with no-ip.com (istudentunion.com, org and net). All three are also using their "no-ip plus" service which provides both static and dynamic resolution via their nameservers. When I configure the domains nameservers to be theirs everything works great (for the most part), but when I change the nameservers to my own sites BIND (base 7.3-RELEASE) I can get everything to resolve locally and via dig/host/nslookup remotely (if and only if I specify the nameserver by IP). What appears to be happing is this: ~/Desktop:ar...@flosoft% !d dig ns istudentunion.org +trace ; <<>> DiG 9.4.3-P2 <<>> ns istudentunion.org +trace ;; global options: printcmd .463753INNSI.ROOT-SERVERS.NET. .463753INNSC.ROOT-SERVERS.NET. .463753INNSL.ROOT-SERVERS.NET. .463753INNSK.ROOT-SERVERS.NET. .463753INNSM.ROOT-SERVERS.NET. .463753INNSA.ROOT-SERVERS.NET. .463753INNSE.ROOT-SERVERS.NET. .463753INNSB.ROOT-SERVERS.NET. .463753INNSH.ROOT-SERVERS.NET. .463753INNSD.ROOT-SERVERS.NET. .463753INNSG.ROOT-SERVERS.NET. .463753INNSF.ROOT-SERVERS.NET. .463753INNSJ.ROOT-SERVERS.NET. ;; Received 500 bytes from 127.0.0.1#53(127.0.0.1) in 0 ms org.172800INNSB2.ORG.AFILIAS-NST.org. org.172800INNSA2.ORG.AFILIAS-NST.INFO. org.172800INNSC0.ORG.AFILIAS-NST.INFO. org.172800INNSB0.ORG.AFILIAS-NST.org. org.172800INNSA0.ORG.AFILIAS-NST.INFO. org.172800INNSD0.ORG.AFILIAS-NST.org. ;; Received 437 bytes from 192.203.230.10#53(E.ROOT-SERVERS.NET) in 86 ms istudentunion.org.86400INNSns2.istudentunion.org. istudentunion.org.86400INNSns1.istudentunion.org. ;; Received 103 bytes from 199.19.54.1#53(B0.ORG.AFILIAS-NST.org) in 88 ms ;; connection timed out; no servers could be reached Since your nameservers for istudentunion.org are in the istudentunion.org domain, you will need glue at the parent nameservers to prevent a chicken and egg problem. Exactly how you tell no-ip this i'm not sure but its not a terribly unusual request. Once the have added it you will need to wait for the .org tld zone to update (not sure of their schedule but better than the once or twice a day of 10 years ago :) The other way around this is to have the nameservers for the domain to be in an already resolving domain, that way you dont need to worry about glue. This is very common. I had already used the second trick earlier today (after posting the message) and what I did is pointed a "dead" domain I personally had at the right IP (the other register correctly lets you register/change nameservers [which no-ip has a form for but it seems to do absulutly nothing])... now I am stuck with a corporate domain depending on a domain owned by a single employee (me [even though I am the CTO/COO I personally think it is inapporiate to do it this way]) the other crazy thing is no-ip puts a 30 day lock on transfers from them when you transfer a domain to them [we transfered from dreamhost]). Vince ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org" ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: setting up local authorative name server with a no-ip.com registered domain
On 11/4/09 21:56, Aryeh M. Friedman wrote: > I have 3 domains that are registered with no-ip.com > (istudentunion.com, org and net). All three are also using their > "no-ip plus" service which provides both static and dynamic resolution > via their nameservers. When I configure the domains nameservers to > be theirs everything works great (for the most part), but when I > change the nameservers to my own sites BIND (base 7.3-RELEASE) I can > get everything to resolve locally and via dig/host/nslookup remotely > (if and only if I specify the nameserver by IP). What appears to be > happing is this: > > ~/Desktop:ar...@flosoft% !d > dig ns istudentunion.org +trace > > ; <<>> DiG 9.4.3-P2 <<>> ns istudentunion.org +trace > ;; global options: printcmd > .463753INNSI.ROOT-SERVERS.NET. > .463753INNSC.ROOT-SERVERS.NET. > .463753INNSL.ROOT-SERVERS.NET. > .463753INNSK.ROOT-SERVERS.NET. > .463753INNSM.ROOT-SERVERS.NET. > .463753INNSA.ROOT-SERVERS.NET. > .463753INNSE.ROOT-SERVERS.NET. > .463753INNSB.ROOT-SERVERS.NET. > .463753INNSH.ROOT-SERVERS.NET. > .463753INNSD.ROOT-SERVERS.NET. > .463753INNSG.ROOT-SERVERS.NET. > .463753INNSF.ROOT-SERVERS.NET. > .463753INNSJ.ROOT-SERVERS.NET. > ;; Received 500 bytes from 127.0.0.1#53(127.0.0.1) in 0 ms > > org.172800INNSB2.ORG.AFILIAS-NST.org. > org.172800INNSA2.ORG.AFILIAS-NST.INFO. > org.172800INNSC0.ORG.AFILIAS-NST.INFO. > org.172800INNSB0.ORG.AFILIAS-NST.org. > org.172800INNSA0.ORG.AFILIAS-NST.INFO. > org.172800INNSD0.ORG.AFILIAS-NST.org. > ;; Received 437 bytes from 192.203.230.10#53(E.ROOT-SERVERS.NET) in 86 ms > > istudentunion.org.86400INNSns2.istudentunion.org. > istudentunion.org.86400INNSns1.istudentunion.org. > ;; Received 103 bytes from 199.19.54.1#53(B0.ORG.AFILIAS-NST.org) in > 88 ms > > ;; connection timed out; no servers could be reached > Since your nameservers for istudentunion.org are in the istudentunion.org domain, you will need glue at the parent nameservers to prevent a chicken and egg problem. Exactly how you tell no-ip this i'm not sure but its not a terribly unusual request. Once the have added it you will need to wait for the .org tld zone to update (not sure of their schedule but better than the once or twice a day of 10 years ago :) The other way around this is to have the nameservers for the domain to be in an already resolving domain, that way you dont need to worry about glue. This is very common. Vince > ___ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscr...@freebsd.org" ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: setting up local authorative name server with a no-ip.com registered domain
The other way around this is to have the nameservers for the domain to be in an already resolving domain, that way you dont need to worry about glue. This is very common. I had already used the second trick earlier today (after posting the message) and what I did is pointed a "dead" domain I personally had at the right IP (the other register correctly lets you register/change nameservers [which no-ip has a form for but it seems to do absulutly nothing])... now I am stuck with a corporate domain depending on a domain owned by a single employee (me [even though I am the CTO/COO I personally think it is inapporiate to do it this way]) You could, of course, register yet another domain ("ns-istudentunion.org"?) for your corporation. Tim ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: smart self-test vs 7200.12/ich9r/ahci
On Thu, 2009-04-09 at 16:24 +0300, Andriy Gapon wrote: > I wonder if anybody has an issue like I do: > http://thread.gmane.org/gmane.linux.utilities.smartmontools/6354 > > Does anybody has guesses/clues about what might be happening? > I couldn't see anything specifically wrong with the output. Is there something wrong with the drive? Sean ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: bin/113860: sh(1): shell is still running when using `sh -c'
On Fri, Apr 03, 2009 at 11:39:05PM +0200, Jilles Tjoelker wrote: > I think this can be improved. I have a patch now; it does not handle all cases but the effect on the code is minimal. I decided to go with the readahead but only do it for the first line. To avoid problems with traps not being executed, http://www.stack.nl/~jilles/unix/sh-forkiftrapped.patch is needed. This fixes a bug in EV_EXIT handling, which would be triggered more often with the change to -c. The patch is also needed for bin/74404. Example: sh -c '(trap "echo trapped" EXIT; sleep 3)' http://www.stack.nl/~jilles/unix/sh-minusc-exec.patch the change itself -- Jilles Tjoelker Don't skip forking for an external command if any traps are active. Example: sh -c '(trap "echo trapped" EXIT; sleep 3)' now correctly prints "trapped". With this check, it is no longer necessary to check for -T explicitly in that case. diff --git a/eval.c b/eval.c --- a/eval.c +++ b/eval.c @@ -730,7 +730,7 @@ evalcommand(union node *cmd, int flags, /* Fork off a child process if necessary. */ if (cmd->ncmd.backgnd || (cmdentry.cmdtype == CMDNORMAL - && ((flags & EV_EXIT) == 0 || Tflag)) + && ((flags & EV_EXIT) == 0 || have_traps())) || ((flags & EV_BACKCMD) != 0 && (cmdentry.cmdtype != CMDBUILTIN || cmdentry.u.index == CDCMD diff --git a/trap.c b/trap.c --- a/trap.c +++ b/trap.c @@ -222,6 +222,21 @@ clear_traps(void) /* + * Check if we have any traps enabled. + */ +int +have_traps(void) +{ + char *volatile *tp; + + for (tp = trap ; tp <= &trap[NSIG - 1] ; tp++) { + if (*tp && **tp) /* trap not NULL or SIG_IGN */ + return 1; + } + return 0; +} + +/* * Set the signal handler for the specified signal. The routine figures * out what it should be set to. */ diff --git a/trap.h b/trap.h --- a/trap.h +++ b/trap.h @@ -39,6 +39,7 @@ extern volatile sig_atomic_t gotwinch; int trapcmd(int, char **); void clear_traps(void); +int have_traps(void); void setsignal(int); void ignoresig(int); void onsig(int); Avoid leaving unnecessary waiting shells in many forms of sh -c COMMAND. This change only affects strings passed to -c, when the -s option is not used. The approach is to read the first line of commands, then the second, and if it turns out there is no second line execute the first line with EV_EXIT. Otherwise execute the first and second line, then read and execute lines as long as they exist. A compound statement such as introduced by {, if, for or while counts as a single line of commands for this. Note that if the second line contains a syntactical error, the first line will not be executed, different from previously. (pdksh and zsh parse the entire -c string before executing it.) Example: sh -c 'ps lT' No longer shows a shell process waiting for ps to finish. diff --git a/eval.c b/eval.c --- a/eval.c +++ b/eval.c @@ -175,6 +175,44 @@ evalstring(char *s) } +/* + * Like evalstring(), but always exits. This is useful in avoiding shell + * processes just sitting around waiting for exit. + */ + +void +evalstring_exit(char *s) +{ + union node *n, *n2; + struct stackmark smark; + + setstackmark(&smark); + setinputstring(s, 1); + do + n = parsecmd(0); + while (n == NULL); + if (n != NEOF) { + do + n2 = parsecmd(0); + while (n2 == NULL); + if (n2 == NEOF) { + evaltree(n, EV_EXIT); + /*NOTREACHED*/ + } + evaltree(n, 0); + evaltree(n2, 0); + popstackmark(&smark); + while ((n = parsecmd(0)) != NEOF) { + if (n != NULL) +evaltree(n, 0); + popstackmark(&smark); + } + } + popfile(); + popstackmark(&smark); + exitshell(exitstatus); +} + /* * Evaluate a parse tree. The value is left in the global variable diff --git a/eval.h b/eval.h --- a/eval.h +++ b/eval.h @@ -47,6 +47,7 @@ struct backcmd { /* result of evalbackc int evalcmd(int, char **); void evalstring(char *); +void evalstring_exit(char *); union node; /* BLETCH for ansi C */ void evaltree(union node *, int); void evalbackcmd(union node *, struct backcmd *); diff --git a/main.c b/main.c --- a/main.c +++ b/main.c @@ -178,7 +178,10 @@ state2: state3: state = 4; if (minusc) { - evalstring(minusc); + if (sflag) + evalstring(minusc); + else + evalstring_exit(minusc); } if (sflag || minusc == NULL) { state4: /* XXX ??? - why isn't this before the "if" statement */ ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"